1.

What will be the output of the following program?
 class Test { public: Test() { cout << "Test's Constructor is Called " << endl; } }; class Result { static Test a; public: Result() { cout << "Result's Constructor is Called " << endl; } }; void main() { Result b; }  

A. Test s Constructor is Called
B. Result s Constructor is Called
C. Result s Constructor Called Test s Constructor is Called
D. Test s Constructor Called Result s Constructor is Called
Answer» C. Result s Constructor Called Test s Constructor is Called


Discussion

No Comment Found