Computer Science, asked by manjumishra320, 1 year ago

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

class Faculty
{
int FCode;
protected:
char FName[20];
public:
Faculty();
void Enter();
void Show();
};
class Programme
{
int PID;
protected:
char Title[30];
public:
Programme();
void Commence();
void View();
};
class Schedule: public Programme, Faculty
{
int DD,MM,YYYY;
public:
Schedule();
void Start();
void View();
};
void main()
{
Schedule S; //Statement 1
___________ //Statement 2
}

Answers

Answered by Pikachu82
1
S. Enter()
And
S. Show()
Answered by Arslankincsem
1

Explanation:

The answer the questions (i) to (iv) is like the following : 1) Start(), Schedule::View(), Commence(), Programme::View(). You can also overlook the mentions that are for constructors.

2) DD,MM,YYYY, Schedule::View() Title, Commence( ), Programme::View()

Fname, Enter(), Show()

3) S.Programme::View( );

4) The order in which the constructors are executed when the object S of a class schedule is mentioned inside main () is Programme( ), Faculty( ), Schedule( )

Similar questions