1

What will be the output of following program? #include using namespace std; class Test{ public: Test() { cout <<"Hello from Test() "; } } a; int main() { cout <<"Main Started "; return 0; }

Correct Answer: hello from test() main started

Make the most of this question

This page focuses on one Object Oriented Programming (OOP) question from Engineering. After checking the answer, return to the topic list to practice more or run a timed set.

Object Oriented Programming (OOP) MCQ: What will be the output of following program? #include using namespace std; class Test{ public: Test() { cout <<"Hello from Test() "; } } a; int main() { cout <<"Main Started "; return 0; } | Extra Education