I was going through the virtual functions and vtables and got a doubt. Suppose I have code something as below:
class base
{
public:
virtual void fun(){}
};
class derived : private base
{
public:
void fun(){}
};
With the scope rule when base class is derived as private then all it's members becomes private of derived class. Will the compiler inserted vptr(pointer to vtable) also become private to derived class?