Here the const specifies that this is a const memeber function.
It means it does not modify its arguments.
It means it can be called for const data members.
However since a const member function is more generic than non-const member 
function,it can also be called on non-const data.

On Monday, 28 May 2012 00:23:39 UTC+5:30, amrit harry 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/-/60kdIXtTPO8J.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to