Also, just so you know, the following code piece does not create an instance of class SomeClass, it declares a function returning an instance of class SomeClass:
Code:
SomeClass a();
a.method(); // This is wrong, 'a' is a function not an instance of SomeClass
This is the correct way to create an instance of a class with the default constructor
Code:
SomeClass b;
b.method(); // This works, because now 'b' is indeed an instance of SomeClass
Just thought you'd like to know that, seeing as how you are declaring functions in your own example...