Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic Dispatch in Java (OOP concept) #169

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Commits on Oct 27, 2022

  1. Subarray Sum Divisible by K

    A classic sliding window approach in Java
    ankit351104 authored Oct 27, 2022
    Configuration menu
    Copy the full SHA
    06c41d3 View commit details
    Browse the repository at this point in the history

Commits on Oct 28, 2022

  1. Create DynamicDispatch.java

    Dynamic method dispatch is the mechanism in which a call to an overridden method is resolved at run time instead of compile time. This is an important concept because of how Java implements run-time polymorphism.
    
    Java uses the principle of ‘a superclass reference variable can refer to a subclass object’ to resolve calls to overridden methods at run time. When a superclass reference is used to call an overridden method, Java determines which version of the method to execute based on the type of the object being referred to at the time call.
    ankit351104 authored Oct 28, 2022
    Configuration menu
    Copy the full SHA
    8f4f73a View commit details
    Browse the repository at this point in the history