Question: What is the output? #include using namespace std; class Person { public: virtual void PrintInfo ( ) = 0 ; void PrintInformation ( ) {
What is the output?
#include using namespace std; class Person public: virtual void PrintInfo; void PrintInformation cout in base class Person" endl; protected: string name; int age; ; class Teacher : public Person public: void PrintInfo cout in child class Teacher" endl; private: int experience; ; int main Teacher mathTeacher; mathTeacher.PrintInfo; return ;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
