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
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
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
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
Science,
7 months ago
Computer Science,
7 months ago
Science,
1 year ago
Social Sciences,
1 year ago
History,
1 year ago
Computer Science,
1 year ago