INHERITANCE IN C++ (4)

Consider the following class declaration and answer the questions given below:

class CHead
{
double Turnove3r;
protected:
int noofcomp;
public:
CHead();
void INPUT(int)
void OUTPUT();
};

class Director: public CHead
{
int noofemp;
protected:
float funds;
public:
Director();
void INDATA();
void OUTDATA();
};

class Manager:public Director
{
float Expense;
public:
Manager();
void DISPLAY(void)
};

(i) Which type of Inheritance out of hte following is illustrated in the above example?
I. Single Level Inheritance
II. Multi level Inheritance
(ii). How many bytes will an object belonging to class manager required?
(iii) Name the member function(s), which are directly accessible from the object of class manager.
(iv) Is the member function OUTPUT() accessible by the object of the class Director?


No comments

Post your comments

Powered by Blogger.