<<< Composition and Encapsulation | Index | Animation: Inheritance and Polymorphism >>> |
Inheritance is a process of deriving one class of objects from another class of objects.
Thus benefit of inheritance is reuse of existing code.
Derived class inherits attributes and operations from the base class.
Base class often called superclass.
Derived class often called subclass.
<<< Composition and Encapsulation | Index | Animation: Inheritance and Polymorphism >>> |