+ 5
Can classes have another class in them?
3 odpowiedzi
+ 9
Yes, in C++ you can, it is called a nested class. However, this class is more like an extension of it's containing class, so don't forget that the sub class can access it's containing class members even if they are private.
+ 3
Thanks a lot!!!
and scarlet special thanks for the example
0
in python also call it inner class
i make an example
https://code.sololearn.com/cSFNOjvtnN6S