Which is true for case #1 also. There is nothing special about new, it's only by convention that we use it. Your constructor method can be named anything (literally, "anything"). It's just the wrath of downstream programmers that prevent you from doing so.
And I prefer case #1 for all the reasons all ready pointed out about indirect invocation.
-derby
In reply to Re: OO style: Placement of "new"
by derby
in thread OO style: Placement of "new"
by crenz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |