February 2018
Intermediate to advanced
304 pages
7h 11m
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’s the object that implements the interface.
Following are the strengths of interfaces:
The weakness of interfaces is that existing datatypes cannot be extended to implement ...
Read now
Unlock full access