in reply to Re^3: Learning classes in Perl
in thread Learning classes in Perl
That's fine; you can say the "new" method of the CGI class is a constructor. But (a) you can't necessarily say that the "new" method of the FuQuux class is a constructor, and (b) you can't necessarily say that the "constructor" of the FuQuux class is named "new". Perl does not require either of these to be the case. It remains true that Perl does not have constructors as the term is understood in other OO languages.
|
|---|