Vehicle class, which has member variables no_of_wheels, license_no, color and a member method call GetNoOfWheels will return the no of wheels. Moreover, it also has a concrete member method call ShowInfo which show the employee basic information.
Rank________________No of wheels
MotorCycle______________2
Van___________________ 4
MiniBus________________ 6
Write the code for the classes MotorCycle, Van and MiniBus. All of them are devised from the Vehicle class.
The code should show the concept of Encapsulation
The code should show the concept of Inheritance
Bonus will give to the code that show the concept of Polymorphism
(Hint: you may assume you have 2 motorcycles, 3 vans and 4 minibuses and then how can you calculate the total of the wheels)