nested classes

Hi,

can anyone tell me the difference between creating a nested class in private and public section of nesting class?pl reply me soon....
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.
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.