The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | May 2017 |
| Last Sign in: | 398 Weeks Ago, 2 Days Ago |
| Questions Answered: | 66690 |
| Tutorials Posted: | 66688 |
MCS,PHD
Argosy University/ Phoniex University/
Nov-2005 - Oct-2011
Professor
Phoniex University
Oct-2001 - Nov-2016
Answer the question (i) to (iv) based on the following code:
class Trainer
{
char TNo[5], TName[20], Specialisation[10];
int Days;
protected:
float Remuneration;
void AssignRem(float);
public:
Trainer();
void TEntery();
void TDisplay();
};
class Learner
{
char regno[10], LName[20],Prpgram[10];
protected:
int Attendeance, Grade;
public:
Learner();
void LEntery();
void LDisplay();
};
class Institute:public Learner, public Trainer
{
char ICode[10],IName[20];
public:
Institute();
void IEntry();
void IDisplay();
};
(i) Which type of Inheritance is depicted by the above example?
(ii) Identify the member function(s) that cannot be called directly from the objects of class Institute from the following:
TEntry()
LDisplay()
IEntry()
(iii) Write name of all the member(s) accessible from member functions of class Institute.
(iv) If class Institute was derived privately from class Learner and privately from class Trainer, then, name the member function(s) that could be accessed through Objects of class Institute.
Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------and----------- ac-----------qui-----------sit-----------ion----------- of----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n.P-----------lea-----------se -----------pin-----------g m-----------e o-----------n c-----------hat----------- I -----------am -----------onl-----------ine----------- or----------- in-----------box----------- me----------- a -----------mes-----------sag-----------e I----------- wi-----------ll