overloading assignment operator in (object oriented programming) C++ programming

#include<iostream>
using namespace std;
class hamza
{
private:
int a,b;
public:
hamza()
{
a=0;
   b=0;
}
hamza(int k ,int m)
{
a=k;
a=m;
}
void get()
{
cin>>a;
cin>>b;
}

void show()
{
cout<<a<<endl;
cout<<b<<endl;
}
void operator += (hamza) const;
};
void hamza::operator += ( hamza h) const
{
int a=a+h.a;
    int b=b+h.b;
}
int mainn()
{
hamza aa;
aa.get();
aa.show();
hamza bb(77,88);
bb.show();
aa += bb;

aa.show();



}
overloading assignment operator in (object oriented programming) C++ programming overloading assignment operator in (object oriented programming) C++ programming Reviewed by Hamza Bashir Ahmad on 08:54:00 Rating: 5