Classes and Objects
- slide 28 : 29
Copy constructors
It is sometimes useful to have a constructor that creates an identical copy of an existing object
The class Die with a copy constructor.
Example use of copy constructors
The use of copy constructors is particularly useful when we deal with mutable objects