You are here: TWiki » ObjectMethod » ClassMethod » StaticMethod

Static Method

05 Jul 2023 - 12:52 | Version 1 |

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 $color = Telecoms::defaultColor()

Related Topics: ClassMethod, ObjectMethod, DeveloperDocumentationCategory
Copyright © 1999-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback
Note: Please contribute updates to this topic on TWiki.org at TWiki:TWiki.StaticMethod.

This website is using cookies. More info. That's Fine