 Hello friends, I am Sanjay Gupta. In this video, I am going to demonstrate you how you can implement function overloading in C++. Before starting, you can subscribe my YouTube channel by clicking on the link which is available at the bottom right corner of this video. You can download my app Techamance that is available on Google Play. You can connect with me by following these details which are available in front of you. Now I am going to implement a code for you which will demonstrate use of function overloading in C++. So first I am including a header file IO screen. Then I am using namespace std. Now I am implementing a class test. Here two variables are declared a and b. Then in public section, I am defining first function that is set data. This x argument is assigned into a and b is initialized by 0. Then again I am defining a function with same name but this time it is having two arguments. x is assigned into a and y is assigned into b. So friends, in C++ you can define more than one function with same name as I did set data and set data but you have to remember that number of arguments or type of argument should be different. So here in first set data I have used one argument and in second set data function I have used two arguments. So this can be possible in C++ with the help of the concept function overloading. Now third function I am defining show which will display value of a and value of b on console. This is complete implementation of class. Now I am defining main method. Here I am declaring two objects t1 and t2. t1 is calling set data and I have passed five inside it. t2 is also calling set data and I have passed two arguments inside it. They both will work properly. Then t1.show and t2.show at last return 0. So this is the complete implementation of main function. Two objects t1 and t2 are declared. Both are calling set data. One is calling one argument set data function and t2 is calling two arguments set data function and then t1 and t2 both are calling show function to display the values. So you can see I have implemented two functions with same name in C++ with the help of function overloading. Now I am executing this code. You can see the output a is 5, b is 0 and a is 5 and b is 10. So first object is displaying 5 and 0 and second object is displaying 5 and 10 because we have called set data accordingly. I hope you have understood how you can implement more than one functions with same name in C++ with the help of function overloading. If you want to watch more programming related videos, you can subscribe my youtube channel that is sanjaygupta underscore text. Thank you for watching this video.