problem about method-dispatch-Collection of common programming errors


  • Jomoos
    java polymorphism overloading overriding method-dispatch
    I do know the syntactical difference between overriding and overloading. And I also know that overriding is run-time polymorphism and overloading is compile-time polymorphism. But my question is: “Is overloading is really compile-time polymorphism? Is the method call really solving at compile time?”. To clarify my point, let’s consider an example class.public class Greeter {public void greetMe() {System.out.println(“Hello”);}public void greetMe(String name) {System.out.println(“Hello ” + name);}

  • Quinn Taylor

Web site is in building