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

18 lines
548 B
Plaintext
Raw Permalink Normal View History

%META:TOPICINFO{author="TWikiContributor" date="1111929255" format="1.0" version="1"}%
%META:TOPICPARENT{name="ObjectMethod"}%
A ClassMethod is a method that must be called relative to the containing class object. This normally only applies to the =new= method used to create new object instances. For example,
---+ package Telecoms
---++ ClassMethod new()
<verbatim>
my $mobile = new Telecoms();
</verbatim>
or
<verbatim>
my $mobile = Telecoms->new();
</verbatim>
__Related Topics:__ DeveloperDocumentationCategory, StaticMethod, ObjectMethod