Difference: StaticMethod (1 vs. 2)

Revision 22010-06-24 - TWikiContributor

Line: 1 to 1
 
META TOPICPARENT name="ClassMethod"
Changed:
<
<
A StaticMethod is a method in a package that can be called without reference to an object of the package type. For example,
>
>

Static Method

A StaticMethod is a method in a package that can be called without reference to an object of the package type. For example,

 

package Telecoms

Changed:
<
<

StaticMethod defaultColour()

>
>

StaticMethod defaultColor()

 
Changed:
<
<
my $colour = Telecoms::defaultColour()
>
>
my $colour = Telecoms::defaultColor()
 

Related Topics: ClassMethod, ObjectMethod, DeveloperDocumentationCategory

Revision 12005-03-27 - TWikiContributor

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="ClassMethod"
A StaticMethod is a method in a package that can be called without reference to an object of the package type. For example,

package Telecoms

StaticMethod defaultColour()


my $colour = Telecoms::defaultColour()

Related Topics: ClassMethod, ObjectMethod, DeveloperDocumentationCategory

 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 1999-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors. <br /> Ideas, requests, problems regarding lt;nopgt;TWiki? lt;a href='mailto:twiki-admin@kcl.ac.uk?subject=TWiki%20Feedback%20on%20TWiki.StaticMethod'gt;Send feedbacklt;/agt; <br /> Note: Please contribute updates to this topic on TWiki.org at <a href="http://twiki.org/cgi-bin/view/TWiki/StaticMethod" target="twiki.org">TWiki:TWiki.StaticMethod</a>.