Class in Class

bearophile via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Jul 8 06:09:51 PDT 2014


seany:

> 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.

You can nest them. But in some cases you also want to use the 
"static" keyword.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list