+ 5

What is polymorphism?

14th Apr 2017, 5:02 PM
Manuel Alvarez Texocotitla
Manuel Alvarez Texocotitla - avatar
5 odpowiedzi
10th May 2017, 12:52 AM
NimWing Yuan
NimWing Yuan - avatar
+ 7
It is the ability of the same code to behave in different ways based on its inputs. Types of Polymorphism 1)Compile time 2)Run time
14th Apr 2017, 5:12 PM
Pixie
Pixie - avatar
+ 5
It's a feature of the plus sign which enables it - when used as an operator - to *add* two integers or floats, but to *concatenate* strings or *join* sets. It behaves differently according to the data type it is used with - this trait is called polymorphism.
14th Apr 2017, 6:41 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 1
To cut a long story short,it's the second paradigm of OOP :)
14th Apr 2017, 6:14 PM
Nikita Galchenko
Nikita Galchenko - avatar
+ 1
Polymorphism is a OOPs concept where one name can have many forms. For example, you have a smartphone for communication. The communication mode you choose could be anything. It can be a call, a text message, a picture message, mail, etc. So, the goal is common that is communication, but their approach is different. This is called Polymorphism.
23rd Jun 2018, 8:40 PM
Pravin Yadav
Pravin Yadav - avatar