हिंदी
तमिलनाडु बोर्ड ऑफ सेकेंडरी एज्युकेशनएचएससी विज्ञान कक्षा ११

Based on the following class declaration answer the question? The member function is inherited as public by Class Bus ______ - Computer Science

Advertisements
Advertisements

प्रश्न

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;
public:
void read_data(float,float)
void write_data(); };
class bus: private heavy_vehicle {
char Ticket[20];
public:
void fetch_data(char);
void display_data(); };

The member function is inherited as public by Class Bus ______

विकल्प

  • input_data(), output_data()

  • read_data(), write_data()

  • fetch_data(), display_data()

  • none of these

MCQ
रिक्त स्थान भरें

उत्तर

fetch_data(), display_data()

shaalaa.com
Visibility Modes
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 16: Inheritance - Evaluation - Section - A [पृष्ठ २७३]

APPEARS IN

सामाचीर कलवी Computer Science [English] Class 11 TN Board
अध्याय 16 Inheritance
Evaluation - Section - A | Q 9. 9.4. | पृष्ठ २७३
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×
Our website is made possible by ad-free subscriptions or displaying online advertisements to our visitors.
If you don't like ads you can support us by buying an ad-free subscription or please consider supporting us by disabling your ad blocker. Thank you.