From: Paul Brannan Date: 2002-11-09T16:25:48+09:00 Subject: Re: Making Instace Variables Private/Local On Sat, Nov 09, 2002 at 11:55:33AM +0900, Yukihiro Matsumoto wrote: > Actually inheritance is a very heavy relationship between classes. > Once you've decided to inherit from other class, you have to know > inside of superclass anyway. I'm not sure I agree. In Ruby, this is true, because of how instance variables work. In C++, if I inherit, I need only know about my parent class's protected methods and data members; private methods/data members are an implementation detail that I need not worry about. C++ and Ruby are very different languages, though, with very different requirements on the user. Paul