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
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?