Does every object of virtual class have a pointer to vtable?
Or only the object of base class with virtual function has it?
Where did the vtable stored? code
All virtual classes usually have a vtable, but it is not required by the C++ standard and the storage method is dependent upon the compiler.