in reply to Re^3: Understanding 'Multiple Inheritance'
in thread Understanding 'Multiple Inheritance'
Whether the advantages of inheritance outweigh the disadvantages is situation dependent, and sometimes a matter of opinion. But it is a matter of fact that many people have managed to dig themselves into deep holes using inheritance when it wasn't really appropriate.Indeed. And IMO, having proper encapsulation and information hiding is a necessary requirement to be able to do inheritance well.By contrast encapsulation and information hiding has much more clear-cut benefits and more minor risks.
|
|---|