Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Java by (6.5k points)
I don't understand how polymorphism is implemented through this.

1 Answer

0 votes
by (11.3k points)

In the context of JAVA, a dynamic method dispatch or runtime-polymorphism represents a process where when a overridden method is called, the call is resolved at run-time rather than during compilation. In a process such as this, the overridden function is called by a reference of a super-class. The decision as to which method method will be called is dependent on the object that the reference variable is pointing toward. 

To learn java in a much more industry oriented manner, it is highly recommended to use such concepts of inheritance and polymorphism in your projects.

Related questions

0 votes
1 answer
asked Feb 17, 2020 in Java by angadmishra (6.5k points)
0 votes
1 answer

Browse Categories

...