Method Overloading and Overriding are the same

Skill/Topic: Intermediate
A) True
B) False
Explanation: Overloading is changing the behavior of a method in a derived class, whereas overriding is having multiple methods with the same name

Showing Answers 1 - 5 of 5 Answers

samiksc

  • Dec 29th, 2005
 

Method overloading means having two methods with the same name but different signatures in the same scope. These two methods may exist in the same class or one in base class and another in derived class.

Method overriding means having a different implementation of the same method in the inherited class. These two methods would have the same signature, but different implementation. One of these would exist in the base class and another in the derived class. These cannot exist in the same class.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions