Infosys interview question

Oops concept in a programming language