Infosys interview question

They asked basic OOPs questions.