Re:Game Development Essentials #1 - Don’t use inheritance fo...
by forrestthewoods on Tuesday February 07, 2012 @03:04AM
(#3560940)
Eek! Multiple inheritance is not implemented in most programming languages for good reason. In general it is wise to favor composition over inheritance.
[ Parent
| on HN ]
Re:Game Development Essentials #1 - Don’t use inheritance fo...
by zura on Tuesday February 07, 2012 @04:33AM
(#3561149)
It 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.