Infosys interview question

Principles of OOP