in reply to Static method vs virtual method
To the extent that those terms apply to Perl a 'virtual method' is called on an object instance using ->:
$obj->methodName (...);
A 'static method' is simply a sub in an OO package that provides functionality related to the package's object type, but that isn't called in the context of an object instance. new is of this nature - it is used to create a new instance of the package's object.
|
|---|