
The
process of extracting common characteristics from two or more classes
and combining them into a generalized superclass, is called
Generalization. The common characteristics can be attributes or methods.
Generalization is represented by a triangle followed by a line.
Specialization is the reverse process of Generalization means creating new sub classes from an existing class.
Let’s take an example of Bank Account; A Bank.