Trait
From Wikipedia, the free encyclopedia
The word trait has several meanings:
- Generically, it refers to a characteristic or property of some entity.
- In biology, trait refers to features of organisms.
- In psychology, it refers to a component of personality as defined by Trait theory.
- In computer science, traits refer to several things:
- In C++, a trait class is a class which is used to store metadata about some other datatype; typically for the benefit of templates.
- In several object oriented programming languages, a trait is a type of abstract type.