Demonstration of inheritance in c++. This example contains the following files.
Vehicle.h is a basic class for a vehicle. Car, truck and allvehicle will be inherited from this base class. All the common features of a vehicle are kept in the base class i.e weight, # of wheels etc…
Derived classes will have the veicle properties and […]