in reply to Re^3: Howto keep private methods private?
in thread Howto keep private methods private?
I was trying to make a method that outsiders cannot call. You appear to want a method that outsiders cannot see at all.
But they can call your method, it blows up in thier face, but they can call it.
I think if I inherit and override a public method with one that is private (or otherwise breaks the public interface), that's certainly rude, but I would not say that's a problem with the way the privacy is implemented.
Yes, it is incredibly rude given your definition of privacy. But if you were to be able to write that private method, and only have the local class use it, and all other subclasses use the original private one. It wouldnt be very rude then, because only the local class would need to know. Everyone else could just go about thier own merry way :)
|
|---|