开发者

Nested Classes C++ [duplicate]

开发者 https://www.devze.com 2023-03-01 05:56 出处:网络
This question already has answers here: Closed 11 years ago. Possible Duplicates: nested classes C++ nested clas开发者_如何学Pythons access control in C++
This question already has answers here: Closed 11 years ago.

Possible Duplicates:

nested classes C++

nested clas开发者_如何学Pythons access control in C++

I'm a little confused as to what access a nested class has to the members of an enclosing class. What is the relationship it shares with the outer class?


The nested class does not have any special access to the enclosing class that would not be available to any other class - it can see public members, etc. The nesting only provides a useful scoping mechanism for nested class, but doesn't change its behavior or capabilities.


This might help you : nested class access control in C++. It is not exacly what you asked, but gives some interesting informations.

0

精彩评论

暂无评论...
验证码 换一张
取 消