Tuesday 17 January 2017

What is Polymorphism?

Polymorphism
Capability of a method to do different things based upon the object it is acted upon.

    Method Overloading(Compile time): Same method name but different arguments.

    Method Overriding(Run Time): Same method name as well as same arguments, used in case of Inheritance.

No comments:

Post a Comment