The following statement allows the ________ members of the Car class to access ________ members of the Vehicle class.class Car : public Vehicle(A) private, private(B) public, private(C) protected, private(D) public, protected(E) None of these

Answer :

Answer:

(E)None of these.

Explanation:

The inheritance is class Car:public Vehicle.

Class Car is a derived class while the Vehicle class is the Base class.Car is inheriting class Vehicle publicly.So every member of class Car can have access to the all members of class Vehicle except the private members.There is no option like this.So we conclude that the answer to this question is option E that is None of these.

Other Questions