What is polymorphism in JavaScript with example?

Polymorphism is the ability to define a generic type of behaviour that will behave differently when applied to different types . Let’s say we have an Animal class that implements the talk method. If class Dog and Cat inherit talk() from class Animal, object dog and object cat both will talk but in a different form.22 Mar 2016

Sizin İçin Seçtik  What is meant by polymorphism in Java?

Leave a Reply

Your email address will not be published. Required fields are marked *