Infosys Interview Question

Oops concept and sql concept and logical question