Pergunta de entrevista da empresa TO THE NEW

What is runtime polymorphism? Give example.

Respostas da entrevista

Sigiloso

3 de mar. de 2018

Runtime polymorphism is a process in which a call to an overridden method is resolved at runtime rather than compile-time.

14

Sigiloso

12 de jun. de 2019

Example can be given by Let us take a class Shape as Superclass and a baseclass and take another class triangle extending it then if a method of Superclass is used by creating a object of type Triangle and giving reference as a shape i.e Triangle on=new Shape(); then on.printarea(); will be resolved at runtime.

Sigiloso

25 de set. de 2018

It is best defined as one thing having many forms..