A
Amit Bhatia
Hi,
I am trying to define the assignment operator for a class called
Cell. I am bit confused between the following two statements:
const Cell& Cell:perator=(const Cell &r)
{
\\ all the stuff
}
and,
Cell& Cell:perator=(const Cell &r)
{
\\ all the stuff
}
Is the first work going to work at all? does it make any sense? I think
it is not going to do what it is intended to do.
thanks,
--a.
I am trying to define the assignment operator for a class called
Cell. I am bit confused between the following two statements:
const Cell& Cell:perator=(const Cell &r)
{
\\ all the stuff
}
and,
Cell& Cell:perator=(const Cell &r)
{
\\ all the stuff
}
Is the first work going to work at all? does it make any sense? I think
it is not going to do what it is intended to do.
thanks,
--a.