Welcome to Westonci.ca, the place where your questions find answers from a community of knowledgeable experts. Our platform offers a seamless experience for finding reliable answers from a network of experienced professionals. Discover detailed answers to your questions from a wide network of experts on our comprehensive Q&A platform.

Consider the following classes. The Vehicle class is a base class. The Car, Truck, and Motorcycle classes inherit from the Vehicle class. The Sedan and SUV classes inherit from the Car class. Which of the following lists all the types of objects that cannot be passed into the function calculate_registration_fee(Car& car)?
Question options:
a) Sedan and SUV objects
b) Sedan, SUV, and Car objects
c) Motorcycle, and Truck objects
d) Motorcycle, Truck, and Vehicle objects


Sagot :