Qtr No. 213, New Town Yehlanka
Indore 454775, India
| Predict the output for the following program class Employee { public: Employee(){ cout << "Constructor of Employee Class" << endl; } ~Employee(){ cout << "Destructor of Employee Class" << endl; } }; class Trainee : public Employee { public: Trainee(){ cout << "Constructor of Trainee Class" << endl; } ~Trainee(){ cout << "Destructor of Trainee Class" << endl; } }; int main() { Trainee* t = new Trainee; free(t); } |
To get all Infosys Certified CPP Programmer Exam questions Join Telegram Group https://rebrand.ly/lex-telegram-236dee