4 ms·
That's why I said "flavor". It's not exactly inheritance obviously, but provides some of the same functionality. There are many ways to skin an OO cat. Traits
by queuebert 4y ago
That's why I said "flavor". It's not exactly inheritance obviously, but provides some of the same functionality. There are many ways to skin an OO cat.
Traits describe the methods implemented, and you can override with specific implementations or inherit the default, from a level up.