Pergunta de entrevista da empresa Crédit Agricole

Question about OOP programming and logical question