Diferença: StaticMethod (1 vs. 3)

Versão 325 Sep 2013 - TWikiContributor

 
META TOPICPARENT name="ClassMethod"

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

StaticMethod defaultColor()

Alterado:
<
<
my $colour = Telecoms::defaultColor()
>
>
my $color = Telecoms::defaultColor()
 

Related Topics: ClassMethod, ObjectMethod, DeveloperDocumentationCategory

Versão 224 Jun 2010 - TWikiContributor

 
META TOPICPARENT name="ClassMethod"
Alterado:
<
<
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

 
Added:
>
>
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

Alterado:
<
<

StaticMethod defaultColour()

>
>

StaticMethod defaultColor()

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

Related Topics: ClassMethod, ObjectMethod, DeveloperDocumentationCategory

Versão 127 Mar 2005 - TWikiContributor

 
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-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Idéias, solicitações, problemas com relação ao TWiki? Nos dê um retorno
Note: Please contribute updates to this topic on TWiki.org at TWiki:TWiki.StaticMethod.
#