There are 4 classes
- vehicle, truck, car, wheels
- truck and car class are inheriting the vehicle class
- and wheels class object is used in the vehicle class -> which is composition
Wheel class has 2 attributes - number of wheels and wheel quality - vehicle class has 2 variables: - wheel object - engine
Car class has 3 variables -> model name as well
Truck class has 3 variable-> size, other variables from vehicle
For the method I am using printinfo to display.