+ 1
Please tell me how Polymorphism helps in programming ?
I am not able to understand where to use this Polymorphism concept
2 odpowiedzi
+ 5
It allows methods that perform similar or closely related functions to be accessed through a common name. For example, a program performs operations on an array of numbers which can be int, float, or double type. Method overloading allows you to define three methods with the same name and different types of parameters to handle the array operations.
more more info visit 👇
https://www.quora.com/What-are-the-advantages-of-polymorphism
+ 2
It's not much!
It means, having the same method name in the child class as well!
It is not very special!
If you overrride one method of the parent class the other methods of the parent class will not get affected!
https://code.sololearn.com/c0XSMU2NzRbe/?ref=app