go ahead... be a heretic | |
PerlMonks |
lock a method or functinoality to class & subclassby nmerriweather (Friar) |
on Feb 13, 2007 at 23:32 UTC ( [id://599809]=perlquestion: print w/replies, xml ) | Need Help?? |
nmerriweather has asked for the wisdom of the Perl Monks concerning the following question:
i have a class, and I'd like to make sure that only instances of that class - or instances of a subclass - can perform certain functions.
ie, i have a get/set function. i want anyone to be able to get, but i only want the class itself ( or a class that claims it ISA member of that class ) to be able to set. does anyone have a suggestion?
Back to
Seekers of Perl Wisdom
|
|