Sharing! What gained.

Jul 11, 2015

C++ Overloading


Overloading in general English means to put extra burden or weight on something , Overloading in C++ means to provide user the facility of  calling the function with same signature but different amount of parameters with same calling function.The parameters that you will pass must have same Datatypes as that of function the declared parameters will be further cleared by this simple example


Now in this example we have made three functions which are going to perform the same thing that is adding but the amount of parameters that are going to be added will be different so we are overloading the same function to perform more tasks in this way the work performance will increase and less space will be occupied as compared to  three different function.

Share this Post!

0 comments:

Post a Comment