Books Related to Java Technology

Saturday, December 27, 2008

Polymorphism in java

Polymorphism, allows the software developer to reuse names as well as code. Polymorphism is a natural consequence of specialization (sub classing relationship implemented via inheritance), the associated principle of substitutability, and message passing.

Different forms of Polymorphism:- From a practical programming viewpoint, polymorphism exists in three distinct forms in Java:
  • Method overloading
  • Method overriding through inheritance
  • Method overriding through the Java interface

No comments:

Post a Comment