42 lines
743 B
Plaintext
42 lines
743 B
Plaintext
|
head 1.1;
|
||
|
access;
|
||
|
symbols;
|
||
|
locks; strict;
|
||
|
comment @# @;
|
||
|
|
||
|
|
||
|
1.1
|
||
|
date 2006.02.01.12.01.16; author TWikiContributor; state Exp;
|
||
|
branches;
|
||
|
next ;
|
||
|
|
||
|
|
||
|
desc
|
||
|
@new-topic
|
||
|
@
|
||
|
|
||
|
|
||
|
1.1
|
||
|
log
|
||
|
@buildrelease
|
||
|
@
|
||
|
text
|
||
|
@%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
|
||
|
@
|