CPSC 335 Quiz 7

Answer the following questions with a few sentences.

  1. How is a class different from a struct?
  2. What does making a member function const do?
  3. What is this in C++ and how is it different from this in Java?
  4. Why should one make instance variables private?
  5. What is a destructor?