Problem
In an object-oriented traffic simulation system, we have the classes listed below. Draw an inheritance diagram that shows the relationships between these classes.
Draw an inheritance diagram that shows the relationships between these classes.
• Vehicle
• Car
• Truck
• Sedan
• Coupe
• Pickup Truck
• Sport Utility Vehicle
• Minivan
• Bicycle
• Motorcycle.