Using different parameters for the functions of same name to perform different types of tasks is known as _________

Options
- Operator overloading
- abstraction
- function overloading
- Inheritances


CORRECT ANSWER : function overloading

Discussion Board
C++ - Function Overloading

Using different parameters for the functions of same name to perform different types of tasks is known as function overloading. If any class have multiple functions with same names but different parameters then they are said to be overloaded. Function overloading allows you to use the same name for different functions, to perform, either same or different functions in the same class.
Following are the ways to overload a function:
By changing number of arguments.
By having different types of argument.

Prajakta Pandit 01-27-2017 12:33 AM

Wrong Question / Answer

Function overloading is same name different parameters. You are asking "Using different function name.. "so none of the above

XYZ 05-21-2015 11:47 PM

Explanation.

Answer : function overloading.

Function overloading is also called as method overloading.
Function overloading is the ability to create multiple methods of the same name with different implementations.

Jayesh Sonar 02-24-2015 07:09 AM

Write your comments


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement