Infosys interview question

Can you explain the difference between compile-time and run-time polymorphism?

Interview Answer

Anonymous

16 Sept 2024

Compile-time polymorphism is achieved using method overloading or operator overloading, while run-time polymorphism is achieved using method overriding with inheritance.