0

What is polymorphism and how do you go about it

Up to know I have no idea what polymorphism is and how to do it, but I have understood inheritance pretty nice.

27th Apr 2021, 6:07 AM
Omar Juma
Omar Juma - avatar
5 Answers
+ 2
Thank u guys for ur helpšŸ‘
28th Apr 2021, 7:56 PM
Omar Juma
Omar Juma - avatar
+ 1
Omar Juma The word polymorphism means having many forms. In simple words, we can define polymorphism as the ability of a message to be displayed in more than one form. Real life example of polymorphism: A person at the same time can have different characteristic. Like a man at the same time is a father, a husband, an employee. https://www.geeksforgeeks.org/polymorphism-in-java/
27th Apr 2021, 9:53 PM
ā¤ļøšŸ˜PreranašŸ˜ā¤ļø
ā¤ļøšŸ˜PreranašŸ˜ā¤ļø - avatar
+ 1
Welcome Omar Juma
29th Apr 2021, 5:49 AM
ā¤ļøšŸ˜PreranašŸ˜ā¤ļø
ā¤ļøšŸ˜PreranašŸ˜ā¤ļø - avatar
0
https://www.tutorialspoint.com/java/java_polymorphism.htm#:~:text=Polymorphism%20is%20the%20ability%20of,is%20considered%20to%20be%20polymorphic. //Go through this to know about polymorphism
27th Apr 2021, 6:21 AM
Atul [Inactive]
0
It's kinda like, different behaviours in different situations.. i.e., Polymorphism allows you to perform single action in different ways (or) it allows us to define one interface and have multiple implementations.
27th Apr 2021, 7:18 AM
sarada lakshmi
sarada lakshmi - avatar