1
Vote

$base through class hierarchy

description

Consider 3 class: A, B inherited from A, C inherited from B. A defines method M. B defines its own M and calls A.M from it. C doesn't define M.
When M is called on C then:
1) Copy of B.M is called.
2) B.M is called.
3) A.M is called.
 
Should be:
1) B.M is called.
2) A.M is called.

comments