const allows this function to be called on constant object.

So if someone creates an const obj of this class. Assignments can be done.

On Mon, May 28, 2012 at 12:23 AM, amrit harry <dabbcomput...@gmail.com>wrote:

> complex_number const & operator =(complex_number & temp) const
>     {
>     return *this;
>     }
>
>
> what is the job of marked 'const'....???
>
> --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/algogeeks/-/zjDLCIDr_p8J.
> 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.
>

-- 
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