Unformatted text preview: ic data. The other concern is that the instance we are
copying to may already have dynamic data
If so, we do not want to lose contact with it, at
least not before we delete it.
So, there must be some code to clean up
dynamic data of the destination instance,
if there is any.
if Applied Programming Unary operators such as ++ and -- can also be
W e'll leave these to later courses (or your own
Be aware that these have complications.
Again – watch for the Pandora's Box.
Again Applied Programming Applied Programming There are several other operators which are
<< insertion operator for streams
>> extraction operator
W e need to overload these, but they are
operators of another class.
What class? Applied Programming Applied Programming Well, we've used the already-defined streams
cin, cout and cerr.
cin cout and cerr
Just instances of classes.
We've made our own streams using
View Full Document
- Spring '14
- Object-Oriented Programming, Subroutine, Programming constructs, TimeType