Computer Science, asked by cutekhushicute2666, 11 months ago

Which of the following refers more than one method having same name but different parameters ?(a) Overloaded methods
(b) Overridden methods(c) Duplicate methods
(d) All of the above

Answers

Answered by Anonymous
1
hello here is your answer by Sujeet

Q:-Which of the following refers more than one method having same name but different parameters ?(a) Overloaded methods
(b) Overridden methods(c) Duplicate methods
(d) All of the above

ANS:- Overloaded Method
Answered by smartbrainz
3

Overloaded methods refer "more than one method having the same name but different parameters"  

Option (a)

Explanation:

  • The "practice of defining two or more methods" within the "same class" that share the 'same name' but have "different parameters" is called "overloading methods".
  • The methods that have the 'same name' in a class are considered overloaded methods. Overloaded methods are distinguished based on the "number and type of parameters" provided as arguments to the methods.
  • Method Overloading needed when we need to conduct the same type of operation in different ways, i.e. for different inputs.

Similar questions