wiki-archive/twiki/data/TWiki/StaticMethod.txt

15 lines
452 B
Plaintext

%META:TOPICINFO{author="TWikiContributor" date="1111929255" format="1.0" version="1"}%
%META:TOPICPARENT{name="ClassMethod"}%
A StaticMethod is a method in a package that can be called without reference to an object of the package type. For example,
---+ package Telecoms
---++ StaticMethod defaultColour()
<verbatim>
my $colour = Telecoms::defaultColour()
</verbatim>
__Related Topics:__ ClassMethod, ObjectMethod, DeveloperDocumentationCategory