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" );
Copyright &© by the contributing authors. All material on this site is the property of the contributing authors.