Computer Science, asked by Kogami6661, 1 year ago

The concept of two two functions with same name is known as

Answers

Answered by Anonymous
5

Answer:

Java allows you to write more than one method in the same class definition with the same name. For example, you can have two methods in ShoppingCart class named computeCost. Having two or more methods named the same in the same class is called overloading.

Answered by adventureisland
0

The concept of two functions with the same name is known as Function Overloading.

About Function Overloading :

  • When two or more functions have the same name but distinct types of parameters or different numbers of arguments, this is known as function overloading.
  • Function overloading saves time and money by reducing the number of different function names that are needed to do the same task by many functions.
  • Overloading occurs when there are numerous functions with the same name but distinct arguments. This approach is used to improve the program's readability.

Similar questions