the member function that is inherited as public by class bus
Answers
Answered by
0
Explanation:
Based on the following class declaration answer the question
class vehicle
{ int wheels;
public:
void input_data(float,float);
void output_data();
protected:
int passenger;
};
class heavy_vehicle : protected vehicle {
int diesel_petrol;
protected:
int load;
protected:
int load;
public:
voidread_data(float,float)
voidwrite_data(); };
class bus: private heavy_vehicle {
charTicket[20];
public:
voidfetch_data(char);
voiddisplay_data(); };
};
The data member that can be accessed from the function displaydata()
A. passenger
B. load
C. Ticket
D. All of these
Similar questions