...Incoming burst...
When to use one or the other
Avoid multiple inheritance at all costs, as it’s too complex to be reliable. If
you’re stuck with it, then be prepared to know the class hierarchy and spend
time finding where everything is coming from.
Use composition to package code into modules that are used in many different
unrelated places and situations.
Use inheritance only when there are clearly related reusable pieces of code
that fit under a single common concept or if you have to because of something
you’re using.
...Sent by Lazy Monkey...