Here is my code
#include using namespace std; class MyTestClass { int MyTestIVar; public: MyTestClass(void); int
MyTestClass mTC();
Does not declare an object of the MyTestClass class, as you think.
MyTestClass
It Actually, declares a function by the name of mTC which does not take any parameters and returns an MyTestClass object.
mTC
This is known as the Most Vexing Parse in c++.