volume_mute
Generalization and OO Languages
publish date: 2026/06/08 08:10:24.352758 UTC
volume_mute
In object-oriented languages such as Java, generalization as modeled in a UML class diagram is implemented using:
Correct Answer
The class inheritance mechanism built into the language
Explanation
In object-oriented languages such as Java, generalization is implemented using the class inheritance mechanism built into the language. Subclasses inherit attributes and operations from their superclasses. Changes made at the most general level automatically propagate to all subclasses, which is why generalization is good design practice.
Reference
Software Engineering, Ian Sommerville, 9th edition
