CS202 Copy Constructors
9
Copy Constructors
•Using a copy constructor avoids objects “sharing” memory -- but causes this behavior
•
•This should convince us to avoid pass by value whenever possible -- when passing or returning objects of a class!