Teranet interview question

Can overridden methods return a different data type?

Interview Answer

Anonymous

17 Apr 2020

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