Where does virtual method table store in C++?
问题 I want to know how does class object (not instances, but exactly classes) store in memory? class A { public: int a; virtual void f(); virtual ~A(); }; class B : public A { public: int b; void f() final override; }; I know, that usually (not strongly described by standard) in case of this inheritance (B derived from A) we have: memory: ....AB... where AB is a class object of B (if I understand it correctly). If we go deeper (tried with clang and gcc ), we can see something like (again, not