Example Java Program Using Polymorphism In Javascript Object