Hi this is a Certpal question that I have compiled and verified but I am having difficulties working out the why?
For this code to compile Best must extend East. My asnwer was East must extend Best (which I confirmed is wrong). The reference variable best points to an object that implements both Best and East. Why doesnt East extends Best work?
The declaration on the right-hand side must be a sub-type of the one declared on the left-hand side. Take, for example, #1. Test56 is a child of Best, therefore in order for it to compile Best needs to extend East.