Method Overloading
This lesson discusses method overloading and uses examples to explain the concept in detail
We'll cover the following...
Definition
When multiple methods with the same name are declared with different parameters, it is referred to as method overloading.
Method overloading typically represents functions that are identical in their purpose but are written to accept different data types as their parameters.
Factors Affecting Method Overloading
- Number of Arguments
- Type of arguments