Pergunta de entrevista da empresa Sydac

What are types of polymorphism?

Resposta da entrevista

Sigiloso

31 de mai. de 2024

Polymorphism is the way by which one function can have many forms. Poly means "many" and morph means "forms" so the polymorphism. There are 2 types of it, mainly "compile time polymorphism" and "runtime polymorphism". When function call resolves at compile time then is is compile time polymorphism and if at runtime call is resolved then runtime polymorphism.