CPSC 221H-200: Data Structures & Algorithms
Lab Exercise #4
Spring 2009
- Create a class Point with constructor, copy constructor, destructor, and print methods. In each method, print out a unique message to the console.
- Create a function that accepts Point by value. Which methods will print?
- Create a function that accepts Point by reference. Which methods will print?
- Create a function that accepts Point by const reference. Which methods will print?