168k views
0 votes
Writing two or more functions with the same name, but with different argument lists, is known as ___________.

a. overloading

b. creating a template

c. orienting

d. inheritance

User Xid
by
5.6k points

2 Answers

6 votes

Answer:

A. Writing two or more functions with the same name, but with different argument lists, is known as overloading.

Step-by-step explanation:

Overloading is the act of creating several different methods with the same name but different signatures, each with its own implementation. Specifically in Java, it is also widely used as a way to solve the "problem" of missing default parameters.

User Stjepan Bakrac
by
5.6k points
3 votes

Answer:

Writing two or more functions with the same name, but with different argument lists, is known as overloading.

Step-by-step explanation:

Overloading: Exactly what the problem asks, you have various methods with the same name, but different argument list. This is the correct answer.

Writing two or more functions with the same name, but with different argument lists, is known as overloading.

User Marek Rycharski
by
5.6k points