in reply to Re: (Re:)+ Constructor/Factory Orthodoxy
in thread Constructor/Factory Orthodoxy
Can an abstract class not have a constructor?
Should a subtype be able to be substituted for a supertype in any situation?
Should I be concerning myself with my object's concrete type on the typical constructor call?
When I consider these questions I wonder about the validity of my initial expectation.
It depends on what the meaning of the word 'isa' is.
Regarding:
I have a greater expectation, in Perl, that Frob() is a routine call returning something here. That bothers me. This seems a very queer, obstrusive, distracting use of extraneous parentheses.my $frob = new Frob();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re4: Constructor/Factory Orthodoxy
by dragonchild (Archbishop) on Feb 27, 2003 at 14:27 UTC |