Advertisement
Guest User

Untitled

a guest
Apr 18th, 2014
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.29 KB | None | 0 0
  1. class Clam
  2. {
  3. public:
  4.   Clam();
  5.   ~Clam();
  6. private:
  7.   class Self; // декларируем сторонний класс
  8.   Self* self;
  9. };
  10.  
  11. class Clam::Self
  12. {
  13.   // private things (pearls?) here
  14. };
  15.  
  16. Clam::Clam()
  17. {
  18.   self = new Clam::Self();
  19. }
  20.  
  21. Clam::~Clam()
  22. {
  23.   delete self;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement