3 Assignment
Assignment
Copy constructors are not the only way we make
copies of data.
- Even more common is the use of assignment:
- Assignment is so common that it can be hard to
imagine programming without it
- though in rare conditions we will do so
- E.g., you cannot assign istreams and ostreams
- You cannot copy them by constructor either
- So the compiler will try to be helpful
again
