SHARE
TWEET

Untitled

a guest Aug 12th, 2017 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class A
  2. {
  3. public:
  4.     A();
  5.     ~A();
  6. };
  7.  
  8. class B : public A
  9. {
  10. public:
  11.     B();
  12.     ~B();
  13. };
  14.  
  15. class C : public B
  16. {
  17. public:
  18.     C();
  19.     ~C();
  20. };
  21.  
  22. int main()
  23. {
  24.     C* test;
  25.  
  26.     test = new C();
  27.  
  28.     return 0;
  29. }
RAW Paste Data
Top