Capgemini interview question

Questions related to oop principle