I have a class say, "A" which is having a pure virtual function "foo". The function foo is public in class A.
I create another class B, which inherits from A. It defines "foo" as private.
But if I create instance of A :
A *pB = new B();
pB->foo(); then this calls the private function in B.
I wonder how does this work!