------- Comment #14 from  2009-01-21 07:53 -------
(In reply to comment #13)
>> But the compiler is capable of checking to see whether the inheritance is 
>> public or private.  It just doesn't at the moment.  No runtime protection 
>> checking needed in this instance.
> Casting to Object is valid, since the class did not inherit from Object 
> privately.  Once you get to object, you need runtime information to cast to a 
> subclass or interface.

Sorry, I misread what your code was doing.  It's the same as the C++ example


Reply via email to