1
%META:TOPICINFO{author="ProjectContributor" date="1231502400" format="1.1" version="1"}%
2
%META:TOPICPARENT{name="ObjectMethod"}%
3
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,
6
---++ ClassMethod new()
9
my $mobile = new Telecoms();
13
my $mobile = Telecoms->new();
17
*Related Topics:* StaticMethod, ObjectMethod