Plz explain below code

circle& operator=(circle &)
{
radius=c.radius;
x=c.x;
y=x.y;
return *this;
}
QUESTION IS : as we know reference is a const pointer...so return type
circle& mean a pointer pointing to circle class object is created.Now
during return we write * this..

As per book this contains object address so *this mean the object ,so
returned..that i got ..but if our aim is ony to return pointer to circle
then why cant we  use
return this // as this contains address of circle object ...
y we used??
return *this


if this contains 6000(suppose) we simply return this as this is object
addres that all we need???

plz clear

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to