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; };
- Single level
- Multilevel and single level
- Hierarchical
- Hierarchical and single level
(c).Hierarchical
need an explanation for this answer? contact us directly to get an explanation for this answer