cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
the scope of a class within another clas
the scope of a class within another class
Jun 20, 2011 at 10:12pm UTC
soheilghafurian
(37)
Hi
Given that class B is defined within class A, does B have access to the private members of class A?
Thanks a lot
Soheil
Jun 20, 2011 at 10:17pm UTC
guestgulkan
(2942)
NO.
Nested classes have no 'special' privileges with respect to the enclosing class (likewise the enclosing class has no special privileges with respect to the nested class)
Jun 21, 2011 at 2:25pm UTC
soheilghafurian
(37)
I see. Thanks a lot for your help :)
Topic archived. No new replies allowed.