Teamnet interview question

Difference between compile and runtime polymorphism?

Interview Answer

Anonymous

Mar 17, 2024

Polymorphism allows you to write code that can handle different situations in a flexible way. Compile one is done through method overloading and runtime is done with method overriding.