good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: OO - best way to have protected methodsby Joost (Canon) |
on Aug 17, 2005 at 14:40 UTC ( [id://484449]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|