“from class Base, there is reference to call methodTwo.But methodTwo exists both in Base and Derived. which one gets executed?”,”Since b is really a Derived object, we check there first to see if it has a methodTwo.So

Average Rating
0 out of 5 stars. 0 votes.

“from class Base, there is reference to call methodTwo.But methodTwo exists both in Base and Derived. which one gets executed?”,”Since b is really a Derived object, we check there first to see if it has a methodTwo.So

it will use the one from Derived even though the call came from within Base class!”