0
How a nested class works?
Classes and objects of c++
6 Respostas
+ 11
A nested class is a member of its enclosing class. Non-static nested classes (inner classes) have access to other members of the enclosing class, even if they are declared private. Static nested classes do not have access to other members of the enclosing class.
0
Yes
0
Making a class inside class
0
If you create a class B inside a class A, then the only way you can access B is in A. Ex:
class A {
class B {
...
};
B myVarB; // Here can access B
};
// Here cannot access B
0
Thanks
- 1
You mean inheritance or making a class inside another class?