Jump to content

Trait (computer programming)

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by EngineerScotty (talk | contribs) at 08:38, 30 January 2006 (initial rev; please add more detail). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

Traits are a type of abstract type, used as a "simple conceptual model for structuring object oriented programs."[1]. Traits are similar to mixins, but may include definitions for class methods. Traits were proposed for inclusion in Smalltalk, and are found in Perl 6 and Scala.

Traits Traits: Composable Units of Behavior