Computer Science, asked by shreyasaxena0510, 6 months ago

class student

{

int rno ;

char sname [20] ;

float marks ;

public :

student ( );

void register ( ) ;

void display ( ) ;

} ;

class faculty

{

long ID ;

char fname [20];

public :

faculty ( ) ;

void enter ( ) ;

void show ( ) ;

} ;

class course : public student, private faculty

{

long ccode ;char cname[50] ;

char sdate[10], enddate [8] ;

public :

course ( ) ;

void commerce ( ) ;

void details ( ) ;

} ;

(i) Which type of inheritance is illustrated in the above code ?​

Answers

Answered by tanmay8110
0

Single Level Inheritance, Multilevel Inheritance, Multiple Inheritance

Similar questions