Polymorphism

Posted on 16th Feb 2014 by admin

Was wondering if someone could explain this a little better to me. I had always assumed that it had to do with method overloading or overriding(through inheritence).

The following wikipedia entry seems to indicate otherwise though:

http://en.wikipedia.org/wiki/Polymorphism_in_object-oriented_programming

"Polymorphism is not the same as method overloading or method overriding. [1] Polymorphism is only concerned with the application of specific implementations to an interface or a more generic base class. Method overloading refers to methods that have the same name but different signatures inside the same class. Method overriding is where a subclass replaces the implementation of one or more of its parent's methods. Neither method overloading nor method overriding are by themselves implementations of polymorphism"

Other forums