0
What does mean by POLYMORPHISM in Java
4 Antworten
+ 6
Yes. Method overriding, annotation @Override.
+ 4
Preet, you can overload methods without inheritance, see e.g.
https://code.sololearn.com/cJmmki0zu8Fv/?ref=app
+ 2
being able to do more than one thing. multiple uses
+ 2
Polymorphism it is of two type :-
(1) Method Overloading
(2) Method Overriding
=>METHOD OVERLOADING
Method that is inherited and is redefined in child class, with same name and same signature but with different parameters/arguments is called "Method Overloading".
=>METHOD OVERRIDING
Method that is inherited and is redefined in child class, with same name and same signature is called "Method Overriding".