Java Reference
In-Depth Information
be used polymorphically anywhere a reference to an object of any of its
supertypes (class or interface) is required. Interface declarations create
type names just as class declarations do; you can use the name of an
interface as the type name of a variable, and any object whose class
implements that interface can be assigned to that variable.
 
Search WWH ::




Custom Search