Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^2: OO - best way to have protected methods

by gargle (Chaplain)
on Aug 17, 2005 at 14:37 UTC ( [id://484447]=note: print w/replies, xml ) Need Help??


in reply to Re: OO - best way to have protected methods
in thread OO - best way to have protected methods

Obrigado, thanks you,

I'll put your advice to good use. It's in line with what I do for protected methods:
# protected method printMe, silly example actually sub printMe { my $self = shift; caller(0)->isa(__PACKAGE__) || confess "cannot call protected +method\n"; # do something silly for now print $self->account . " " . $self->name . " " . $self->balanc +e . "\n"; }

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://484447]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2024-04-18 19:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found