This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Every constructor must have a name identical to the class name and no return type. If you state a return type by mistake, the compiler will take that as a method. Probably a design fault in the language, but it is too late to change now.
Every method must have a return type or void.
Joined: Jan 09, 2008
The language does not restrict method names to exclude the class name.
If there's a return type, then it's a method, as shown in this confusing but
valid code.Jim ... ...