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
1
S. Enter()
And
S. Show()
And
S. Show()
Answered by
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
Math,
7 months ago
English,
7 months ago
Political Science,
7 months ago
Psychology,
1 year ago
Math,
1 year ago
Hindi,
1 year ago
Chemistry,
1 year ago