Infosys Interview Question

Object oriented programming basic question