Q2
Single choice
What happens when you attempt to compile and run the following code?
#include <iostream>
using namespace std;
class First
{public:
First() { cout << "Constructor";}
~First() { cout << "Destructor";}
void Print(){ cout<<"from First";}
};
int main()
{First FirstObject;
FirstObject.Print();
}