Answer the questions (i) to (iv) based on the following :
class PACKAGE
{
int PCode;
char PDes[20];
protected:
float PQty;
public :
PACKAGE();
void In();
void DispO;
};
class TRANSPORT
{
int TCode;
protected:
char TName[20];
public:
TRANSPORT();
void Enter();
void Display();
};
class DELIVERY:public PACKAGE, private TRANSPORT
{
char Address[40],Date[12];
public:
DELIVERY();
void Input();
void Show();
}
(i) Which type of Inheritance out of the following illustrated in the above example?
• Single Level Inheritance
• Multi Level Inheritance
• Multiple Inheritance
(ii) Write the names of all the data members,
which are directly accessible from the member functions
of class DELIVERY.
(iii) Write the names of all the member functions,
which are directly accessible by an object of
class DELIVERY.
(iv) What will be the order of execution of the constructors,
when and object of class DELIVERY
is declared ?