Default and Copy Constructors
Steven J. Zeil
June 17, 2013
1
The Default Constructor
2
Copy Constructors
2.1
Where Do We Use a Copy Constructor?
2.2
Compiler-Generated Copy Constructors
2.3
Example: Bid: Compiler-Generated Copy Constructor
2.4
Example: BidCollection: Compiler-Generated Copy Constructor
2.5
2.6
Writing a BidCollection Copy Constructor
2.7
Shallow & Deep Copying
3
Assignment
3.1
Compiler-Generated Assignment Ops
[
]