Function Overloading in C++




This video tutorial explains about overloading functions in c++.
You will learn what is function overloading, how to overload functions, rules for overloading functions in c++ in detail with example.

source code for this tutorial

#include <iostream>

using namespace std;

void display();
void display(string);

int main()
{
    display();
    display("anil");
    return 0;
}

void display(){
    cout << "hi wats up "<<endl;
}
void display(string name){
    cout << "hi wats up "<< name << endl;
}

 
Back To Top