Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Clam
- {
- public:
- Clam();
- ~Clam();
- private:
- class Self; // декларируем сторонний класс
- Self* self;
- };
- class Clam::Self
- {
- // private things (pearls?) here
- };
- Clam::Clam()
- {
- self = new Clam::Self();
- }
- Clam::~Clam()
- {
- delete self;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement