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 ?
(ii) Write the names of all the data members, which is/are accessible from
member function commerce of class course?
(iii) Write the name of member functions which are accessible from objects
of class course.
(iv) Write the names of all members, which are accessible from objects of
class faculty.
Answers
Answered by
0
Answer:
good night friends
Similar questions