Is the Vtable is same for multiple instances of a particular class.
Suppose i am having a class
virtual void Sample();
virtual void Print();
class Derived : public Base
void Sample();//overriding the base class virtual function.
Base* b1 = new Derived;
b1->Sample();//it will call the derived class function.
Base* b2 = new Base;
b2->Sample();//it will call the Base class function.
my question is Is the Vtable is same for b1 and b2.