Answer:
Option 1: Change either the number, type, or order of parameters in the subclass.
Step-by-step explanation:
Overloading can be defined as using more than one methods in a class that have same name.
This confuses the two methods as both have same names. Therefore, while overloading there is kept some change in parameters of the methods. This change can be in following ways:
- Changing order of the parameters from the original method.
- Changing number of parameters i.e deleting or adding new parameters.
- Changing the type of parameters used former.
Forexample:
If a method is created as:
Car(char color, char name, int model)
it can be overloaded by using the following method in the same class:
Car(int model, char color, char name)
(The sequence of the parameters is changed.)
i hope it will help you!