must be called something like this
my $mobile = new Telecoms(); $mobile->phone( "home" );or you can pass the object in as a parameter if you need to:
Telecoms::phone( $mobile, "home" );
Related Topics: ClassMethod, StaticMethod, DeveloperDocumentationCategory