Pergunta de entrevista da empresa UBS

Can you explain what it means to override a method?

Resposta da entrevista

Sigiloso

16 de mai. de 2018

It means you have created another method with the same name, but with different arguments. This new method will override the original method when the override arguments are passed into the new function. This is used often when a class extends another class and one of the methods needs to be tweaked to better fit some new parameters.