~kosova/+junk/tuxfamily-twiki

« back to all changes in this revision

Viewing changes to foswiki/data/System/ClassMethod.txt

  • Committer: James Michael DuPont
  • Date: 2009-07-18 19:58:49 UTC
  • Revision ID: jamesmikedupont@gmail.com-20090718195849-vgbmaht2ys791uo2
added foswiki

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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,
 
4
 
 
5
---+ package Telecoms
 
6
---++ ClassMethod new()
 
7
 
 
8
<verbatim>
 
9
my $mobile = new Telecoms();
 
10
</verbatim>
 
11
or
 
12
<verbatim>
 
13
my $mobile = Telecoms->new();
 
14
</verbatim>
 
15
 
 
16
---
 
17
*Related Topics:* StaticMethod, ObjectMethod