Object-Oriented Programming (OOP)
Which statement correctly explains Method overloading?
- A. The ability to define multiple methods with the same name but different parameters in a class. ✓
- B. The ability of a subclass to provide a specific implementation of a method already defined in its parent class.
- C. A special method automatically called when an object of a class is created, used to initialize it.
- D. A blueprint that defines the properties and behaviors that objects created from it will have.
Correct answer
A. The ability to define multiple methods with the same name but different parameters in a class.
Explanation
Method overloading refers to the ability to define multiple methods with the same name but different parameters in a class.