What is polymorphism
I dont understand what is polymorphism actually do?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Mageshwaran RPosted Nov 21, 2019, 11:14 AM
Sonu GuptaPosted Aug 5, 2019, 7:04 AM
Devesh MehtaPosted Aug 2, 2019, 12:28 AM
Amit KumarPosted Aug 1, 2019, 11:46 PM
Harsh ShahPosted Aug 1, 2019, 11:17 PM
In a programming language that exhibits polymorphism, objects of classes belonging to the same hierarchical tree (inherited from a common base class) may possess functions bearing the same name, but each having different behaviors.
As an example, assume there is a base class named Animals from which the subclasses Horse, Fish and Bird are derived. Also assume that the Animals class has a function named Move, which is inherited by all subclasses mentioned. With polymorphism, each subclass may have its own way of implementing the function. So, for example, when the Move function is called in an object of the Horse class, the function might respond by displaying trotting on the screen. On the other hand, when the same function is called in an object of the Fish class, swimming might be displayed on the screen. In the case of a Bird object, it may be flying.
Amit KumarPosted Jul 27, 2019, 2:41 AM
Junaid ShahidPosted Jul 26, 2019, 6:34 AM
Chittaranjan SwainPosted Jul 26, 2019, 6:19 AM
Posted Jul 10, 2019, 11:25 PM
Tamal MarickPosted Jul 9, 2019, 5:59 AM
Somit VishwakarmaPosted Jul 9, 2019, 2:09 AM
Ganesh SanapPosted Jul 9, 2019, 1:58 AM
Kapil GaurPosted Jul 9, 2019, 1:53 AM
Jayanth ReddyPosted Jul 9, 2019, 1:09 AM
Rajanikant HawaldarPosted Jul 9, 2019, 12:50 AM
Sanwar RanwaPosted Jul 9, 2019, 12:27 AM
Amit MohantyPosted Jul 9, 2019, 12:17 AM