Skip to content
Advertisement

What is the process called?

The process by which Java is able to determine which method to invoke when methods have
been overridden.

I have this sentence and I would like to find out what the process is called

Advertisement

Answer

In Java and other object-oriented programming languages, method overriding is a feature that allows a subclass or child class to provide a specific implementation of a method that is already provided by one of its super-classes or parent classes.

Method overriding is one of the ways in which Java supports Runtime Polymorphism. The process you are looking for is Dynamic method dispatch. It’s the mechanism by which a call to an overridden method is resolved at run time, rather than compile time.

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement