3 ms·
Eek! Multiple inheritance is not implemented in most programming languages for good reason. In general it is wise to favor composition over inheritance.
by forrestthewoods 15y ago
Eek! Multiple inheritance is not implemented in most programming languages for good reason. In general it is wise to favor composition over inheritance.
- zura 15y agoIt is deciding between "IS A" and "HAS A". In general, there is no such a rule that says: "HAS A" is wiser. It depends on the use case.
- Ygor 15y agoRelated, an interesting article: IS-A IS-A HAS-A http://weblog.raganwald.com/2008/03/is-is-has.html http://weblog.raganwald.com/2008/03/is-is-has.html