Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: OO - best way to have protected methods

by Joost (Canon)
on Aug 17, 2005 at 14:40 UTC ( [id://484449]=note: print w/replies, xml ) Need Help??


in reply to OO - best way to have protected methods

I would use the first one if I really feel the need for a private method (which is almost never).

I was slightly confused by the title of your post, though; a protected method is usually a method that can be called by the object/class itself and its subclasses.

  • Comment on Re: OO - best way to have protected methods

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (2)
As of 2024-04-25 18:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found