I have used the following code for assignment operator overloading:
SimpleCircle SimpleCircle::operator=(const SimpleCircle & rhs) { if(this == &rhs
#include using namespace std; class employee { int idnum; double salary; public: employee(){} employee(int a,int b) { idnum=a; salary=b; } void dis() { cout<<"1st emp:"<>a>>b; employee e1(a,b); e1.dis(); employee e2; e2=e1; e2.show(); }