employer cover photo
employer logo

Pregunta de entrevista de VMware

why do u need abstract functions when you have overloading

Respuesta de la entrevista

Anónimo

12 de nov de 2014

Abstract classes can have both concrete as well as abstract method. So if we want to enforce subclass to implement the functionality of abstract methods before using the concrete methods of the Abstract superclass we have to use Abstract function. This cannot be done in function overloading .

1