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

Based on the following class declaration answer the question? Which is the base class of the class heavy_vehicle? - 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(); };

Which is the base class of the class heavy_vehicle?

विकल्प

  • Bus

  • heavy_vehicle

  • vehicle

  • both (a) and (c)

MCQ

उत्तर

vehicle

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

APPEARS IN

सामाचीर कलवी Computer Science [English] Class 11 TN Board
अध्याय 16 Inheritance
Evaluation - Section - A | Q 9. 9.1. | पृष्ठ २७२
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.