April 2012
Intermediate to advanced
296 pages
7h 3m
English
In Java, the usual mechanism for supporting this form of abstraction is the interface. The interface mechanism provides a means for dispatching calls to an abstract function, specified in an interface definition, to a specific implementation based on the datatype of the first parameter passed in the call. In Java, the first parameter is implicit; it is the object that implements the interface.
The following are the strengths of interfaces:
The weakness of interfaces is that existing datatypes cannot be extended ...
Read now
Unlock full access