Infosys Interview Question

basic OOP questions