Self Test Questions

 < Day Day Up > 



  1. Describe in your own words what is meant by the term dynamic polymorphism.

  2. How does dynamic polymorphism differ from ad hoc and static polymorphism?

  3. What is a pure virtual function?

  4. How is a pure virtual function different from an ordinary virtual function?

  5. A base class that declares one or more pure virtual functions is known as what type of class?

  6. What happens to a derived class if it inherits a pure virtual function but fails to override it?

  7. Describe the three different inheritance behaviors achieved through the use of pure virtual, ordinary virtual, and non-virtual functions.

  8. Consider the relationship between a base class and a derived class. What type of behavior should the base class implement as compared to the derived class's behavior?

  9. How does public inheritance differ from private inheritance?

  10. What happens to public base class functions when a derived class privately inherits them?



 < 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