Infosys Interview Question

OOP, basic programming questions