r2 - 27 Mar 2005 - 13:14:15 - TWikiContributorYou are here: WikiGardens.com >  TWiki Web > ObjectMethod
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

Creative Commons License This site is powered by the TWiki collaboration platformUnless otherwise noted, all content on this site is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.
Ideas, requests, problems regarding WikiGardens.com? Send feedback
Note: Please contribute updates to this topic on TWiki.org at TWiki:TWiki.ObjectMethod
 

“Gardening is a kind of disease. It infects you, you cannot escape it. When you go visiting, your eyes rove about the garden; you interrupt the serious cocktail drinking because of an irresistible impulse to get up and pull a weed.”
~ Lewis Gannit