Trait (computer science)
From Seo Wiki - Search Engine Optimization and Programming Languages
In computer programming, a trait is an collection of methods, used as a "simple conceptual model for structuring object oriented programs". Traits are similar to mixins, but whereas mixins can be composed only using the inheritance operation, traits offer a much wider selection of operations, including symmetric sum, method exclusion, and aliasing. A Trait differs from a abstract type in that it provides implementations of its methods, not just type signatures.
- ↑ http://web.cecs.pdx.edu/~black/publications/TR_CSE_02-012.pdf
- ↑ http://www.scala-lang.org/node/126 A Tour of Scala: Traits
- ↑ http://www.ibm.com/developerworks/java/library/j-scala04298.html The busy Java developer's guide to Scala: Of traits and behaviors
- ↑ http://scg.unibe.ch/cgi-bin/scgbib.cgi?query=nathanael+traits+composable+units+ecoop