Sollicitatievraag bij Teranet

Can overridden methods return a different data type?

Antwoord op sollicitatievraag

Anoniem

17 apr 2020

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