Untitled

 avatar
unknown
plain_text
a year ago
473 B
5
Indexable


Specialization	A subclass inherits the properties of a parent class and adds new features or overrides existing ones.	IS-A	Square is a Rectangle (Square inherits from Rectangle)

Generalization	A parent class is created to represent common attributes and behaviors of multiple subclasses.	IS-A	Rectangle is a Shape (Rectangle is a type of Shape)

Aggregation	A class contains one or more objects of another class as its members.	HAS-A	Car has Wheels (Car contains Wheels)
Editor is loading...
Leave a Comment