3 ms·
Constantly. My company uses a popular framework that supports complex behavior defined largely in a declarative manner using inheritance; with method overrides
by twobyfour 9y ago
Constantly. My company uses a popular framework that supports complex behavior defined largely in a declarative manner using inheritance; with method overrides for customizing business logic.
I also frequently use multiple inheritance and what are called "mix-in" classes in python to make more complex customizations reusable.
- wayn3 9y agoMixIn is just multiple inheritance rebranded.
- twobyfour 9y agoYes. Mixins are a particularly handy and slightly less dangerous form of multiple inheritance than multiple inheritance from two fully-fledged and usable classes (which IME causes more problems than it solves). I didn't intend to imply they weren't multiple inheritance. Would it have been clearer to have said "with" instead of "and"?