digitalmars.D.learn - Class in Class
- seany (10/10) Jul 08 2014 You can define structs like this :
- bearophile (5/8) Jul 08 2014 You can nest them. But in some cases you also want to use the
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.
Jul 08 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
Jul 08 2014








"bearophile" <bearophileHUGS lycos.com>