Inheriting from a nested class

llee larry at workingwondersus.com
Wed Nov 26 12:00:10 PST 2008


Is it possible to inherit from a nested class from outside of the enclosing class? For example:

class A
{
     class B { int x; }
}

class C : B
{
     int get () { return x; }
}




More information about the Digitalmars-d-learn mailing list