Domanda di colloquio di Teranet

Can overridden methods return a different data type?

Risposta di colloquio

Anonimo

17 apr 2020

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