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
Topic revision: r1 - 28 Mar 2022, UnknownUser - This page was cached on 22 Oct 2022 - 09:28.