Java   View all facts   Glossary   Help
mechanism > inheritance > single inheritance
Next inheritancemultiple inheritance    Upinheritance

single inheritance
subjectfact 
single inheritancehas definition Inheritance from only one superclassadded by: JK, 2001-10-19 11:37:55.0
is a subtopic of Inheritance2001-10-19 11:37:55.0
is a kind of inheritancesource: Object Oriented Software Engineering by Lethbridge and Laganière, 2001-10-19 11:37:55.0
results in simpler systems than multiple inheritance    source: Object Oriented Software Engineering by Lethbridge and Laganière, 2001-10-19 11:37:55.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