RND Softech interview question

OOPS in any language like java