none
[openafs-wiki.git] / TWiki / ObjectMethod.mdwn
1 An [[ObjectMethod]] is a method that must be called relative to a previous constructed object of the class type. For example:
2
3 # <a name="package Telecoms"></a> package Telecoms
4
5 ## <a name="ClassMethod new()"></a> [[ClassMethod]] new()
6
7 ## <a name="ObjectMethod phone( $who )"></a> [[ObjectMethod]] phone( $who )
8
9 must be called something like this
10
11     my $mobile = new Telecoms();
12     $mobile->phone( "home" );
13
14 or you can pass the object in as a parameter if you need to:
15
16     Telecoms::phone( $mobile, "home" );
17
18 **_Related Topics:_** [[ClassMethod]], [[StaticMethod]], [[DeveloperDocumentationCategory]]