What is generalization?
Are you preparing for IT certification? With practice questions, study notes, interactive quizzes, tips and technical articles, uCertify PrepKits ensure that you get a solid grasp of core technical concepts to ace your certification exam in first attempt.
What is generalization?
Rating:
Generalization defines a is-a-kind of relationship in which one class shares its structure and/or behavior with one or more other classes. The concept of generalization in UML is similar to inheritance in Java. It maps directly to the extends keyword. It is shown by a straight line originating from the subclass with a hollow arrowhead pointing at the nearest superclass.
The figure below depicts generalization in UML:

The equivalent Java code for this is as follows:
class Dog extends Animal {}
class Cat extends Animal {}
Rating:
Was this information helpful?
Other articles
- What are static variables?
- What is the lastIndexOf() method of the String class?
- What is the == operator?
- What is a publish-and-subscribe model?
- What are static methods?