previous | start | next

Answers

  1. Measurable is an interface. Interfaces have no fields and no method implementations.
  2. That variable never refers to a Measurable object. It refers to an object of some class–a class that implements the Measurable interface.
  3. 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.


previous | start | next