Self Test Questions

 < Day Day Up > 



  1. Describe the differences between horizontal and vertical access. Describe how to use the keywords public, protected, and private to control horizontal and vertical access.

  2. When can you get away with forward declaring a class name vs. including the whole header file?

  3. Describe, in your own words, the purpose of inheritance. In what two primary ways is inheritance used?

  4. Describe how to hide a base class function with a derived class function.

  5. How do you override a base class function in a derived class?

  6. What is a virtual function?

  7. What is a pure virtual function?

  8. What is the purpose of a virtual destructor?

  9. Describe how to achieve dynamic polymorphic behavior.

  10. In what part of a derived class constructor do you call the base class constructor?



 < 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