Forums Java Help What is method overloading and method overriding

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #7158
    Aakanksha
    Participant

    What is method overloading and method overriding?

    #11850
    Aakanksha
    Participant

    Method overloading: When a method in a class having the same method name with different arguments is said to be method overloading.

    Method overriding : When a method in a class having the same method name with same arguments is said to be method overriding.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.