1.

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; };

A. Single level
B. Multilevel and single level
C. Hierarchical
D. Hierarchical and single level
Answer» D. Hierarchical and single level


Discussion

No Comment Found