Apexon Interview Question

oops concept,simple program, sql query and theory