I have a question related with the example below:
Class A{virtual foo(};virtual g()};
Class B: public A {virtual foo();virtual g()};
B::foo(){A::foo()};
A::foo(){g()};
When I call B::foo(), it will use B::g() not A::g(), how to explain it, is it because of the 'this' pointer always points to the current object? Thanks a lot!