INHERITANCE IN C++ (8)

Answer the questions (i) to (iv) based on the following code:

class Normal
{
char Ccode[10];
public:
void Input();
void Output();
};
class Live
{
char Wcode[50];
public:
void LIn();
void Lout();
};
class Teacher:public Normal, private Live
{
long Tcode;
float Fees;
int Time;
public:
void Register();
void Show();
};

(i) Which type of inheritance is shown in the above example?
(ii) Write names of all the member functions accessible form Show() function of class Teacher.
(iii) Write names of all the member functions accessible through an object of class Teacher.
(iv) Write the names of all data members which are accessible by class Live.



No comments

Post your comments

Powered by Blogger.