20 likes | 282 Views
Operator Overloading. Presented By: Nazia Hossain Lecturer, Stamford University Bangladesh. General Form. Overloading the assignment operator: Myclass & operator=(const Myclass & rhs ); Assume b and c are Myclass type B.operator =(c). Rhs (right hand side).
E N D
Operator Overloading Presented By: Nazia Hossain Lecturer, Stamford University Bangladesh
General Form • Overloading the assignment operator: • Myclass& operator=(const Myclass& rhs); • Assume b and c are Myclass type • B.operator=(c) Rhs (right hand side)