Home | Gifts

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()

my $colour = Telecoms::defaultColor()

Related Topics: ClassMethod, ObjectMethod, DeveloperDocumentationCategory

Revision r2 - 2010-06-24 - 03:48:47 - TWikiContributor Edit