Difference: ObjectMethod (1 vs. 2)

Revision 227 Mar 2005 - Main.TWikiContributor

Line: 1 to 1
Deleted:
<
<
META TOPICPARENT name="HomeTwikiDEVELOPLibTWikiDotPm"
 An ObjectMethod is a method that must be called relative to a previous constructed object of the class type. For example:

package Telecoms

Revision 127 Mar 2005 - Main.TWikiContributor

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="HomeTwikiDEVELOPLibTWikiDotPm"
An ObjectMethod is a method that must be called relative to a previous constructed object of the class type. For example:

package Telecoms

ClassMethod new()

ObjectMethod phone( $who )

must be called something like this

my $mobile = new Telecoms();
$mobile->phone( "home" );
or you can pass the object in as a parameter if you need to:
Telecoms::phone( $mobile, "home" );

Related Topics: ClassMethod, StaticMethod, DeveloperDocumentationCategory

 
This website uses only proprietary and third party technical cookies to ensure the correct operation of its web pages and to improve its services.
By continuing to navigate the website you consent to the use of cookies. To learn more, or deny your consent, consult the privacy policy
Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.