Inheritance of Attributes and Operations
publish date: 2026/06/08 08:10:24.067860 UTC
True or False: In a generalization hierarchy, the attributes and operations of a higher-level class are also associated with all lower-level subclasses — subclasses inherit from their superclasses and add more specific attributes and operations of their own.
Correct Answer
Explanation
In a generalization hierarchy, the attributes and operations of higher-level classes are also associated with the lower-level classes (subclasses). These lower-level classes then add more specific attributes and operations. For example, if the Doctor class has attributes Name, Phone#, and Email, then all subclasses (Hospital Doctor, General Practitioner, etc.) automatically have those same attributes, plus any additional ones specific to their subclass.
Reference
Software Engineering, Ian Sommerville, 9th edition
