Home >> Sem 2 >> C++ programs >> OVERLOAD
#include<iostream.h>
#include<conio.h>
class test
{
long a,b;
public:
void getdata(int p,int q)
{
a = p;
b = q;
}
void getdata(long p,long q)
{
a = p;
b = q;
}
void show()
{
cout<<"A : "<<a<<", B : "<<b<<endl;
}
};
void main()
{
clrscr();
test t1;
t1.getdata(100,100000);
t1.show();
getch();
}