This shows you the differences between two versions of the page.
|
en:techniques:programming:object-oriented:inheritance:traits:overview [2012/04/15 02:29] marielle |
en:techniques:programming:object-oriented:inheritance:traits:overview [2012/04/15 02:30] (current) marielle |
||
|---|---|---|---|
| Line 76: | Line 76: | ||
| ==== Reusable collection of methods ==== | ==== Reusable collection of methods ==== | ||
| + | |||
| + | Traits support the reuse of coherent groups of methods by otherwise independent classes [DNS+06]. | ||
| + | |||
| + | (source: [[http://scg.unibe.ch/archive/papers/Berg07aStatefulTraits.pdf|Stateful Traits]], PDF) | ||
| Capture a set of methods | Capture a set of methods | ||