Question: 1.2.3.4 Q03: (2 Points): Consider the following declarations and answer the questions given below: class parent string name: protected int son: public void input datachar,int:
Q03: (2 Points): Consider the following declarations and answer the questions given below: class parent string name: protected int son: public void input datachar,int: void outputdata: 1: class father protected parent int daughter protected int baby public void readdataintint void writedata): 1: class mother private father intX: public void fetchdata (int) void displaydata): 1) Name the base class and derived class of the class father 2) Name the data members that can be accessed from function display data 3) Name the member function which can be accessed by an objects mother M 4) Is the member function outputdata) accessible to the object: father
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
