![]() |
|
Do you know where your variables are? | |
PerlMonks |
Re^5: Thoughts on new 'class' OO in upcoming perlby Jenda (Abbot) |
on Apr 10, 2023 at 11:20 UTC ( [id://11151558]=note: print w/replies, xml ) | Need Help?? |
This is what "protected" is for in other OO systems. The stuff you want hidden even from the subclasses is marked private, the stuff you want them to have access to is protected, the stuff you only want to access within the library is internal and only the stuff that's supposed to be ... erm ... public is public. private and public on their own is NOT enough. Jenda
In Section
Meditations
|
|