Infosys interview question

Basically focused on object oriented programming.