go ahead... be a heretic | |
PerlMonks |
Re5: Encapsulation through stringification - a variation on flyweight objectsby dragonchild (Archbishop) |
on Apr 03, 2003 at 14:32 UTC ( [id://247762]=note: print w/replies, xml ) | Need Help?? |
Let me get this straight: The basic concern with the lack of truly private attributes/methods has to do with the fact that you may only want to inherit the interface, not the object implementation. You want to know that "I am a Foo" and "Foos can bark", so "I can bark" and not have to think anymore about it. Plus, you want to know that by using Foo's capability to bark, you have not harmed your capability to develop any which way you want.
Does that accurately sum it up? ------ Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement. Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.
In Section
Meditations
|
|