194k views
2 votes
"Given a base class named Vehicles and a derived class named Sedans, ________ can inherit from ________."

User Mylescc
by
5.8k points

1 Answer

7 votes

Answer:

answer is sedan and vehicle

Step-by-step explanation:

solution

we know shape of vehicle some are

Hatchback, Sedan , MPV, SUV , Crossover, Coupe, Convertible

sedan or saloon, is a one of the type of vehicle

it is a passenger car which is generally three box configuration

3 compartments are

  1. engine
  2. passenger
  3. cargo

and

inheritance is not possible here because there is no subclass so correct answer is sedan and vehicle

User Sunil Parmar
by
6.4k points