Multiple choice

Which of the following statements is/are correct? :i. Overloaded methods are multiple methods which have the same name but different arguments. ii. Overridden methods are multiple methods which have the same name, same return type and same arguments. iii. Overloaded methods are multiple methods which have the same name, same return type and same arguments. iv. Overridden methods are multiple methods which have the same name but different arguments.

  1. ii and iv are correct

  2. i and ii are correct

  3. only iii is correct

  4. only i is correct

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

This answer is correct. Overloaded methods are multiple methods which have the same name but different argument list. It is part of polymorphism whereas overridden methods are those methods which have the same name, same return type and same argument list.