Class in Class

seany via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Jul 8 05:27:27 PDT 2014


You can define structs like this :

Struct A {

int A_int;

struct B {
...
}

}

Iwonder if you could as well define a class inside another class. 
I dont know if it is theoritically at all a sensible thing to do. 
Just asking the question.


More information about the Digitalmars-d-learn mailing list