What happens when you attempt to compile and run the following code?
#include
class First
{ public: void Print(){ cout<<"from First";}
};
class Second
{ public: void Print(){ cout<< "from Second";}
};
int main()
{
www.vceplus.com - VCE Exam Simulator - Download A+ VCE (latest) free Open VCE Exams - VCE to PDF Converter - PDF Online
First FirstObject;
FirstObject.Print();
Second SecondObject;
SecondObject.Print(); }
A. It prints: from First
B. It prints: from Firstfrom First
C. It prints: from Firstfrom Second
D. It prints: from Secondfrom Second