Two or more functions with the same name but different set of parameters or different number of parameters are said to be overloaded and this concept is known as function overloading. It is common to create functions which does the same thing but on different parameters. For example, we might have to create functions to add integers as well as floating-point numbers. In C, to do this, we have to create two functions with different names. But in C++ we can use the same function name to create multiple functions. Consider the following program which demonstrates the use
The post What is the function overloading in Programming appeared first on Coding Security.
What is the function overloading in Programming
read more
Tidak ada komentar:
Posting Komentar