Answers
- Measurable is an interface. Interfaces have no fields and no method
implementations.
- That variable never refers to a Measurable object. It refers to an object of some
classa class that implements the Measurable interface.
- Both describe a situation where one method name can denote multiple methods.
However, overloading is resolved early by the compiler, by looking at the
types of the parameter variables. Polymorphism is resolved late, by looking at
the type of the implicit parameter object just before making the call.