class sugar: static inheritance
kamkasravi at yahoo.com
Wed Jun 8 09:44:32 PDT 2011
Mark Miller wrote
> Actually, it isn't another topic. It's why Kam's GilaMonster cannot see Monster's "health". "private" means "private to the class", not "private to the class and subclasses". "protected" would mean the second, and no, I don't think it's inevitable.
Strong encapsulation in order to support defensiveness and security.
In other words it's seems like uses cases related to private instance as well as private class (ie static private) are reasonable and at least as important as protected.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss