Infosys Interview Question

Java based on oops concepts