18 lines
548 B
Plaintext
18 lines
548 B
Plaintext
%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
|