Self Test Questions

 < Day Day Up > 



  1. In your own words describe the goal of operator overloading.

  2. Describe the difference between a shallow copy and a deep copy.

  3. What type of copy does a default, compiler-provided assignment operator perform?

  4. Describe how operator overloading is related to function overloading.

  5. (T/F) Operators overloaded in base classes can be overridden in derived classes.

  6. What is the purpose of the dummy integer parameter in the postfix version of the increment and decrement operators?

  7. What level of access does a friend function of a class enjoy?

  8. How would non-member operator functions gain access to private class data members?

  9. When overloading arithmetic operators, to what type of error checking should you pay particular attention?

  10. What is the ultimate result and benefit of operator overloading?



 < Day Day Up > 



C++ for Artists. The Art, Philosophy, and Science of Object-Oriented Programming
C++ For Artists: The Art, Philosophy, And Science Of Object-Oriented Programming
ISBN: 1932504028
EAN: 2147483647
Year: 2003
Pages: 340
Authors: Rick Miller

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net