|
|
Most practices of object-oriented programming recommend keeping the inheritance graph as shallow as possible to avoid this problem. Some additionally advise the use of composition instead of inheritance.
See also: Object-oriented programming, Complexity