Infosys Interview Question

They asked related to the oops concepts