Wednesday, 23 January 2019

What is the difference between compile time polymorphism and run time polymorphism

What is the difference between compile time polymorphism and run time polymorphism?

Answer:

Compile time Polymorphism
Compile time Polymorphism also known as method overloading.
>Method overloading means having two or more methods with the same name but with different signatures.
Run time Polymorphism
Run time Polymorphism also known as method overriding.

Method overriding means having two or more methods with the same name , same signature but with different implementation.

No comments:

Post a Comment