Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class MyClass
- {
- public:
- MyClass() {}
- ~MyClass() { delete var1; delete var2; }
- protected:
- void* var1;
- private:
- void* var2;
- }
- class MyClassA : public MyClass
- {
- public:
- MyClassA : MyClass() {}
- }
- class MyClassB : public MyClass
- {
- public:
- MyClassB : MyClass() {}
- ~MyClassB() { delete var3; }
- private:
- void* var3;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement