Capgemini interview question

Asked OOP Concepts