3 ms·
Dart solves this quite elegantly using mixins. https://dart.dev/guides/language/language-tour#adding-features-to-a-class-mixins https://dart.dev/guides/language
by shubhamharnal 6y ago
Dart solves this quite elegantly using mixins. https://dart.dev/guides/language/language-tour#adding-features-to-a-class-mixins https://dart.dev/guides/language/language-tour#adding-featur...
- mwcremer 6y agoI'm not sure that it does? From the c2 example, the goal is to have all Shapes respond to area() and perimeter(), but in the example you linked to, only Musicians will respond to entertainMe(), not all Performers.