June 2004
Intermediate to advanced
848 pages
21h 28m
English
Polymorphism is a complicated name for a straightfoward concept. It is Greek for “many shapes,” and it means allowing the same code to be used with different types. In Java, it is implemented by allowing several different methods to have the same name, making it look like one method to the API user. “Name reuse” would be a better term. There are two types of polymorphism in Java: the really easy kind (overloading) and the interesting kind (overriding).
The really easy kind of polymorphism is called overloading in Java and other languages, and it means that in any class you can use the same name for several different ...
Read now
Unlock full access