In Java Create an application which has a base class of Car, second class Features of the car, third class Properties of the car Hint :-
All the cars should inherit from the base class car and should contain basic parameters like wheelbase , color , drivetrain (RWD , FWD , AWD ), length , breadth, engine type
Feature class should include functionally like volume of the car, and added properties like music system company , additional features like refrigerator, heated seats etc
Properties class should include data like Manufacturer It should also contain two method
1. determine the On road cost of the car for the area.
2. Maintenance cost
and properties class will be extended in metadata class having property Name of the car, cost of the car , taxes on the car.
(On road cost = cost of car * taxes on the car + Gov taxes (Random number you can take) + Road tax (2000 rs))
(Maintenance cost = 10% of car cost + taxes (18% of maintenance cost))
Also add a special case in which is the manufacturer is of type bugatti the on road cost will increase by 79% and maintenance cost will increase by 167%