Infosys interview question

Questions about OOP