I have used the following code for assignment operator overloading:
SimpleCircle SimpleCircle::operator=(const SimpleCircle & rhs) { if(this == &rhs
it's right way to use operator overloading now you get your object by reference avoiding value copying.