Object-Oriented Programming (OOP)
Select the correct name for: the ability to define multiple methods with the same name but different parameters in a class.
Difficulty: Medium
About this MCQ
This Medium Object-Oriented Programming (OOP) MCQ checks one syllabus fact.
The question is: “Select the correct name for: the ability to define multiple methods with the same name but different parameters in a class.”
The accepted answer is C. Method overloading. Method overloading refers to the ability to define multiple methods with the same name but different parameters in a class.
- A. Inheritance
Why not A: “Inheritance” is not correct. The accepted answer is C. Method overloading. Method overloading refers to the ability to define multiple methods with the same name but different parameters in a class.
- B. Object
Why not B: “Object” is not correct. The accepted answer is C. Method overloading. Method overloading refers to the ability to define multiple methods with the same name but different parameters in a class.
- C. Method overloading ✓
- D. Multiple inheritance
Why not D: “Multiple inheritance” is not correct. The accepted answer is C. Method overloading. Method overloading refers to the ability to define multiple methods with the same name but different parameters in a class.
Correct answer
C. Method overloading
Explanation
Method overloading refers to the ability to define multiple methods with the same name but different parameters in a class.
Source: Object-Oriented Programming (OOP) Official Reference Guide
Tags: computer science, oop, object-oriented programming, software design
Submitted by: MCQsHub Editorial
Related MCQs
- The concept in which a special method automatically invoked when an object is destroyed, used to release resou...
- Identify the correct definition of Destructor.
- What term describes the following? a class member that belongs to the class itself rather than to any individu...
- In computer science, Static member refers to which of the following?
- Select the correct name for: a keyword that controls the visibility and accessibility of a class's members, su...
- Which statement correctly explains Access modifier?