Wanting2LearnMan
asked on
overloaded '=' operator in c++ class
I am looking at some existing C++ code and I see several c++ classes that are derived from abstract base classes.
I see that all these classed have an overleaded '=' operator that is public.
e.g.
Can someone explain why this is needed??
And why is it public??
Thanks
I see that all these classed have an overleaded '=' operator that is public.
e.g.
SomeClass& operator = (const SomeClass& rhs);
Can someone explain why this is needed??
And why is it public??
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.