Coderiving
Sean Kelly
sean at f4.ca
Tue Nov 21 09:12:12 PST 2006
Karen Lanrap wrote:
> Why one can derive from a nested class only in the corresponding
> super class?
>
> The example gives the error:
>> super class Id is nested within Concept, not Concrete
>
> But Concrete is derived from Concept and should contain the
> definition of the class Id!
I think this is because inner classes can access data in the private
scope of their surrounding class, and private class data should not be
accessible by derived classes.
Sean
More information about the Digitalmars-d-learn
mailing list