Q:

Which type of inheritance is illustrated by the following code?

0

Which type of inheritance is illustrated by the following code?

class student{ public: int marks; };
class topper: public student { public: char grade; };
class average{ public: int makrs_needed; };
class section: public average{ public: char name[10];  };
class overall: public average{  public: int students;  };

  1. Single level
  2. Multilevel and single level
  3. Hierarchical
  4. Hierarchical and single level

All Answers

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

 (c).Hierarchical

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 among the following best describes multiple ... >>
<< Which among the following is true?...