Q:

Which among the following is correct for multiple inheritance?

0

Which among the following is correct for multiple inheritance?


  1. class student{public: int marks;}s; class stream{int total;}; class topper:public student, public stream{ };
  2. class student{int marks;}; class stream{ }; class topper: public student{ };
  3. class student{int marks;}; class stream:public student{ };
  4. class student{ }; class stream{ }; class topper{ };

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

 (a).class student{public: int marks;}s; class stream{int total;}; class topper:public student, public stream{ };

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

OBJECT ORIENTED PROGRAMMING INHERITANCE AND ITS TYPES MCQ

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
Which programming language doesn’t support multi... >>
<< Which among the following best defines single leve...