void show(); Which type of inheritance is illustrated in }; the above C++ code? Name the type of inheritance illustrated in the Write the names of all the data members, above C++ code. which is/are accessible from member the names of data members, which are function Commerce of class Course. accessible from member functions of class the name of member functions, which SHOWROOM. are accessible from objects of class Course. Write the names of all the member functions, Write the names of all members, which are which are accessible from objects belonging to accessible from objects of class Faculty. class WORKAREA. Q.4 Answer the questions (i) to (iv) based on the Write the names of all members, which are following code: accessible from objects of class SHOWROOM. class Regular Q.3 Answer the questions (i) to (iv) based on the { following: char schoolCode[10]; Student public: { int Rno; void InRegular(); char Name[20]; void OutRegular(); Marks; }; protected: class Distance void Result(); { public: char StudyCentreCode[5]; Student(); public: void Register(); void Display(); void InDistance(); }; void OutDistance(); class Faculty }; { long FCode; class Course: public Regular, private Distance char FName[20]; { protected: char Code[5]; pay; float fees; public: int Duration; Faculty(); public: void void InCourse(); void Show(); void OutCourse(); }; }; class Course: public Student, private Faculty Which type of inheritance is shown in the { above example? long names of all the member functions char CourseName[50], StartDate[8]; accessible from OutCourse function of class char EndDate[8]; Course. public: Write name of all the members accessible Course(); through an object of class Course. void Commerce(); Is the function InRegular() accessible inside void CDetail(); the function InDistance()? Justify your }; answer
void show(); }; Name the type of inheritance illustrated in the above C++ code. the names of data members, which are accessible from member functions of class SHOWROOM. Write the names of all the member functions, which are accessible from objects belonging to class WORKAREA. Write the names of all members, which are accessible from objects of class SHOWROOM. Q.3 Answer the questions (i) to (iv) based on the following: Student { int Rno; char Name[20]; Marks; protected: void Result(); public: Student(); void Register(); void Display(); }; class Faculty { long FCode; char FName[20]; protected: pay; public: Faculty(); void void Show(); }; class Course: public Student, private Faculty { long char CourseName[50], StartDate[8]; char EndDate[8]; public: Course(); void Commerce(); void CDetail(); }; Which type of inheritance is illustrated in the above C++ code? Write the names of all the data members, which is/are accessible from member function Commerce of class Course. the name of member functions, which are accessible from objects of class Course. Write the names of all members, which are accessible from objects of class Faculty. Q.4 Answer the questions (i) to (iv) based on the following code: class Regular { char schoolCode[10]; public: void InRegular(); void OutRegular(); }; class Distance { char StudyCentreCode[5]; public: void InDistance(); void OutDistance(); }; class Course: public Regular, private Distance { char Code[5]; float fees; int Duration; public: void InCourse(); void OutCourse(); }; Which type of inheritance is shown in the above example? names of all the member functions accessible from OutCourse function of class Course. Write name of all the members accessible through an object of class Course. Is the function InRegular() accessible inside the function InDistance()? Justify your answer