Inheritance & Polymorphism
Inheritance allows a class to inherit from another; polymorphism lets objects of different classes share the same interface.
Inheritance & Polymorphism
Inheritance creates a parent-child relationship between classes. The child inherits all attributes and methods of the parent and can override them.