मराठी
तामिळनाडू बोर्ड ऑफ सेकेंडरी एज्युकेशनएचएससी विज्ञान इयत्ता ११

Based on the following class declaration answer the question? The data member can be accessed from the function displaydata().

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 data member can be accessed from the function displaydata().

पर्याय

  • passenger

  • load

  • Ticket

  • All of these

MCQ
Advertisements

उत्तर

All of these

shaalaa.com
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 16: Inheritance - Evaluation - Section - A [पृष्ठ २७३]

APPEARS IN

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

Englishहिंदीमराठी


      Forgot password?
Use app×