Pergunta de entrevista da empresa Infosys

Object oriented programming basic question