Any solution or programming tips for Inner class?

Posted by huahsin68 on Stack Overflow See other posts from Stack Overflow or by huahsin68
Published on 2010-05-24T02:32:01Z Indexed on 2010/05/24 2:41 UTC
Read the original article Hit count: 251

Filed under:

Hi, I'm having some toubt here. Hope you guys can share out some programming tips. Just curious to know whether is it a good programming practice if I do something like the code below.

class Outer {
public:
   class Inner {
   public:
      Inner() {}
   }

   Outer() {}
};

I have been doing this for structure where I only want my structure to be expose to my class instead of global. But the case is different here, I am using a class now? Have you guys facing such a situation before? Very much appreciated on any advice from you ;)

© Stack Overflow or respective owner

Related posts about c++