Asked by
edmira amado
on Oct 27, 2024Verified
Redefining a method of a superclass is also known as overloading a method.
Redefining
The process of creating a method in a subclass that has the same signature as one in its superclass, thus providing its own implementation.
Overloading
A programming concept where two or more methods in the same class have the same name but different parameters.
Superclass
The class from which a subclass inherits fields and methods in object-oriented programming.
- Contrast the principles of method overloading with those of method overriding.
Verified Answer
JB
Learning Objectives
- Contrast the principles of method overloading with those of method overriding.