answersLogoWhite

0

Overloading allows us to provide different implementations of the same function depending on the number and type of arguments we pass. We can achieve the same thing using templates, where we can provide a common, generic implementation, regardless of argument type, specialising for more specific types where necessary. For instance, implementations that operate upon objects differ from those that operate upon pointers to objects; to cater for both we must overload the functions that provide those implementations.

User Avatar

Wiki User

8y ago

What else can I help you with?

Related Questions

Operating over loading in c plus plus?

Yes


What is the oblique asymptote of the function fx the quantity of x squared plus 7 x plus 11 all over x plus 5?

It is x - y + 2 = 0


Is y plus x2 plus 1 a function?

That is not a function, although it does involve the function of addition. A function is something that is done to numbers.


A c plus plus statement that invokes a function is known as?

...a function call.


What are the building function in c plus plus?

There is no such term as "building function" in C++.


In C plus plus when a function is executing what happens when the end of the function is reached?

Control is returning to the caller of the function.


When will you make a function inline in c plus plus?

yes,we can make function inline


What are the vertical asymptotes of the function f(x) the quantity of 2 x plus 8 all over x squared plus 5 x plus 6?

They are at x = -3 and x = -2.


What is a main function in c plus plus?

It is the first function that gets called when the program is executed.


What is a primary function in C plus plus?

There is no such thing. You probably meant the main function. The main function is the only function that is required as it serves as the entry point of the program.


Define multi function in c plus plus?

Multi-function simply means more than one function. Every program must have at least one function, the main function (the entry point of the application), and although you can write an entire program using just this one function, breaking the program down into several smaller functions makes the code easier to read and maintain. A major advantage of multi-function programming is that functions can be called as often as required -- there is no need to write the same piece of code over and over again.


What is the function y equals ax2 plus bx plus c?

It is a quadratic function which represents a parabola.