Simple Oops Program In Java