1.

Difference Between Method Overloading And Overriding.

Answer»

Method OVERLOADING :

  • Method overloading increases the readability of the PROGRAM.
  • method overlaoding is OCCURS within the class.
  • In this case, parameter must be different.

Method Overriding :

  • Method overriding provides the SPECIFIC implementation of the method that is already provided by its super class.
  • Method overriding occurs in two classes that have IS-A RELATIONSHIP.
  • In this case, parameter must be same.

Method Overloading :

Method Overriding :



Discussion

No Comment Found