Self Test Questions

 < Day Day Up > 



  1. (T/F) The typedef keyword lets you create a new data type that better represents your problem domain.

  2. (T/F) Enumerations are new data types.

  3. What type of operator would you use to access a structure object’s data or function members?

  4. What type of operator would you use to access a structure object’s data or function members via a pointer?

  5. Describe how to use the “.” operator in conjunction with the “*” operator to access a structure object’s data or functions members via a pointer.

  6. List and discuss the three major differences between structures and classes.

  7. Describe the code changes that were necessary to convert the struct version of Person to the class version.

  8. Why do you suppose the default access for a class is private?

  9. Define the term data encapsulation.

  10. What is meant by the term interface?



 < 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