I came into an issue when trying to declare an instance of my own class "myClass".
For example, myClass class()
gave a compile error.
I did some reading and now know why, because I am essentially declaring a function "class" that takes no arguments and returns type "myClass". I see this now. But what I dont understand is if I have an overloaded constructor, why doesn't the compiler think this: myClass class(argument)
is me trying to declare a function "class" with one argument that returns type "myClass"?
Is it because there is no argument type, and then it knows its the overloaded constructor?