What is Polymorphism?
Share
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Please Disable the AdBlocker to Continue to the site.
Polymorphism is the ability to ascribe a distinct meaning or usage to something in different circumstances. This mainly includes the ability to allow an entity such as a variable, a function, or an object to have multiple forms. There are two types of polymorphism:
– Compile-time polymorphism
– Runtime polymorphism
In contrast to runtime polymorphism, which uses inheritance and interfaces, compile-time polymorphism involves method overloading.