Mphasis Interview Question

oops with Java Basic Programs