[comp.object] Violating encapsulation

marc@dumbcat.UUCP (Marco S Hyman) (11/29/89)

Several posters have commented on how inheritance violates encapsulation.
Are we not discussing design issues of various OO languages?  If a language
allows a subclass access to local variables of a superclass then in that
language all local variables become part of the interface.  Accept it or
change languages.

Now tell me why I'm wrong.  I always like learning new things.

// marc
-- 
// Marco S. Hyman		{ames,pyramid,sun}!pacbell!dumbcat!marc