CPSC 221H-200: Data Structures & Algorithms
Lab Exercise #4
Spring 2009


  1. Create a class Point with constructor, copy constructor, destructor, and print methods. In each method, print out a unique message to the console.
  2. Create a function that accepts Point by value. Which methods will print?
  3. Create a function that accepts Point by reference. Which methods will print?
  4. Create a function that accepts Point by const reference. Which methods will print?