N
newbiecpp
Java can declare a static nested class. Does C++ have same thing like?
class Outer {
public:
static class Inner {
...
};
....
};
I can compile this code. But my question is what's difference between Java
and C++ in term of static nested class? In which case, it is good design to
use static nested class?
Thanks in advance.
class Outer {
public:
static class Inner {
...
};
....
};
I can compile this code. But my question is what's difference between Java
and C++ in term of static nested class? In which case, it is good design to
use static nested class?
Thanks in advance.