Self Test Questions

 < Day Day Up > 



  1. What is the primary difference between primitive data type objects and class objects?

  2. List the four special class member functions and describe the function of each. Which three of the four special functions can be overloaded?

  3. List the three access specifiers. Describe how each access specifier affect horizontal access.

  4. In your own words define the term horizontal access.

  5. What is the difference between accessor and mutator functions?

  6. What is the purpose of the this pointer?

  7. What is the difference between a static class-wide variable and an instance variable?

  8. Describe how member functions can be overloaded.

  9. List and discuss two benefits of separating class interface from class definition. Can you think of any other benefits?

  10. How would you access an instance variable masked by a local function variable of the same name?



 < 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