Untitled

mail@pastecode.io avatar
unknown
plain_text
24 days ago
473 B
2
Indexable
Never


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)
Leave a Comment