Question: Given the following definition of Value : : operator = 1 Value& operator = ( const Value &rhs ) 2 { if ( & rhs

Given the following definition of Value : : operator=
1 Value& operator=(const Value &rhs)
2{
if ( & rhs == this)
return *** this;
v=rhs*v;
return *this;
}
Explain the meaning of '&' on line 1 and on line 3 separately.
 Given the following definition of Value : : operator= 1 Value&

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!