Pregunta de entrevista de Crédit Agricole

Question about OOP programming and logical question