Computer Science, asked by mohamedali09111982, 7 hours ago

the member function that is inherited as public by class bus

Answers

Answered by srnroofing1717
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