Overloading

When a token can be used for multiple purposes. Typically used in context of methods i.e. method overloading.

Method overloading

When multiple methods have same signature and are called according to the arguments passed.

How can it be achieved?

  • Using different data types of parameters
  • Using variable count of parameters

Backlinks