How does inheritance work (in Java) when casting is involved? Casting works as expected with instance variables but not with methods.
Given the following code, which