FDM Group interview question

Question about Object oriented programming