






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







CPSC 223, Fall 2010 2
Key& operator=(const Key& rhs) { 1). Check if rhs is the current object 2). Perform the copy (default is member-to-member) What happens if we use the default for our List class? 3). Return the current object } Allows us to chain =’s together (a = b =c) … and assign the result of equals (an lvalue!) CPSC 223, Fall 2010 13 What are the 3 steps?
CPSC 223, Fall 2010 14
ostream& operator<<(ostream& out, const Key& key); istream& operator>>(istream& in, Key& key);
Why not?
ostream& operator<<(ostream& out, const Key& key); istream& operator>>(istream& in, Key& key);