









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
The concept of inheritance in object-oriented programming and how it relates to object families and hierarchies. It explains the idea of passing down characteristics from parent to child and how it plays an important part in object-oriented design and programming. The document also covers generalization and specification, classification, and the use of keywords for inheritance and superclass. It includes examples of inclusion or subtyping limitations and advantages of creating multiple objects.
Typology: Lecture notes
1 / 15
This page cannot be seen from the preview
Don't miss anything!










Object Families/Hierarchy ➢ the idea of passing down characteristics from parent to child, and plays an important part in Object-oriented design and programming. Generalization/Specification ➢ Classification – hierarchic o A person may be an employee, a customer or a supplier o An employee may be paid monthly, weekly, or hourly o An hourly-paid employee may be a driver, a cleaner, or a sales assistant ➢ As you go up, more general. As you go down, more specific. ➢ Keyword for inheritance ➢ Keyword for superclass
Object Polymorphism
Inclusion or Subtyping Limitations : Employee cannot access to PartimeEmployee Objects Advantage: Create multiple objects