#ifndef FATHERH #define FATHERH #include using namespace std; class father { int j; public: father(int initial_j): j(initial_j) {} virtual ~father() {} virtual void f() const {cout << "father::f, this == " << this << "\n";} struct vtbl { void (*ptr_to_destructor)(father *); void (*ptr_to_dynamic_destructor)(father *); void (*ptr_to_f)(const father *); }; struct layout { const vtbl *ptr_to_vtbl; int j; }; }; #endif