nested classes

Jun 30, 2010 at 2:50pm
Hi,

can anyone tell me the difference between creating a nested class in private and public section of nesting class?pl reply me soon....
Jun 30, 2010 at 6:40pm
putting the nested class in the private section makes it private. Putting it in the public section makes it public.

The effect is the same as public/private functions or variables. Private can't be accessed by outside the class.
Jul 3, 2010 at 12:35pm
Hi,
thanks for ur reply,actually I have executed the private nested class in Turbo C and accessed the inner class members using the object of it in main(),I got the output,so only I got confused,but its showing an error when I execute in visual C++,now I think its due to the turbo C...
Topic archived. No new replies allowed.