Advertisements
Advertisements
प्रश्न
Consider the following c++ code and answer the question?
class Personal
{
int Class,Rno;
char Section;
protected:
char Name[20];
public:
personal();
void pentry();
void Pdisplay(); };
class Marks:private Personal
{ float M{5};
protected:
char Grade[5];
public: Marks();
void Mentry();
void Mdisplay(); };
class Result:public Marks
{
float Total,Agg;
public:
char FinalGrade, Commence[20];
Result();
void Rcalculate();
void Rdisplay();
};
Which type of Inheritance is shown in the program?
एक पंक्ति में उत्तर
उत्तर
Multilevel inheritance.
shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?