File indexing completed on 2024-05-05 05:41:40
0001 #include <stdio.h> 0002 0003 class A 0004 { 0005 public: 0006 A() 0007 { 0008 } 0009 0010 ~A() 0011 { 0012 } 0013 0014 A(const A &) = delete; 0015 A& operator=(const A &) = delete; 0016 }; 0017 0018 class B : public A 0019 { 0020 public: 0021 B() : A() 0022 { 0023 i = 4; 0024 } 0025 0026 ~B() 0027 { 0028 printf("%d\n", i); 0029 } 0030 0031 int i; 0032 };