Java   View all facts   Glossary   Help
mechanism > inheritance > multiple inheritance
Next inheritancesingle inheritance    Upinheritance

multiple inheritance
subjectfact 
multiple inheritancecan result in more complex systems than single inheritance    source: Object Oriented Software Engineering by Lethbridge and Laganière, 2001-10-19 11:37:27.0
has definition Inheritance from more than one superclasssource: Object Oriented Software Engineering by Lethbridge and Laganière, 2001-10-19 11:37:27.0
is a subtopic of Inheritance2001-10-19 11:37:27.0
is a kind of inheritancesource: Object Oriented Software Engineering by Lethbridge and Laganière, 2001-10-19 11:37:27.0
should be avoided if possiblesource: Object Oriented Software Engineering by Lethbridge and Laganière, 2001-10-19 11:37:27.0
inheritancehas advantages
  • it parallels natural categories
  • it prevents avoidable duplication and simplifies maintenance
  • it avoids introducing bugs into previously debugged code
2001-10-19 11:36:54.0
has purpose code reuse2001-10-19 11:36:54.0
occurs automatically once you have defined which classes are superclasses and which classes are their subclasses    2001-10-19 11:36:55.0