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

asked
User Mylescc
by
7.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

answered
User Sunil Parmar
by
9.0k points
Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.