Infosys interview question

Definitely know your OOP principles.