Pregunta de entrevista de Teranet

Can overridden methods return a different data type?

Respuesta de la entrevista

Anónimo

17 de abr de 2020

No, but they can return a subtype of the return data type in the base class.