how is polymorphism supported in java
Answers
Answered by
1
Answer:
Java supports two kinds of polymorphism. You can overload a method with different sets of parameters. This is called static polymorphism because the compiler statically binds the method call to a specific method. Within an inheritance hierarchy, a subclass can override a method of its superclass.
Answered by
3
Answer:
Polymorphism means many forms. Polymorphism is supported in java by method overloading. Java allows us to create many methods of the same name with different parameters.
If this answer is helpful, please mark it as the brainliest:)
Explanation:
Similar questions