Concept Flow - Base and derived classes
Define Base Class
Define Derived Class
Create Derived Object
Call Derived Method
Call Base Method (inherited)
Use Derived and Base Features
First, we define a base class, then a derived class inherits from it. We create an object of the derived class and use both its own and inherited features.