CS 105: C++
Quiz 10 Requirements
C++: Chapter 5, 6

  1. Learn the two simple rules for understanding public vs private inheritance described in this discussion.
  2. Given an existing class, be able to write a complete definition of a (simple) derived class, including the addition of new members during the derivation.  How do you set access control (public vs private) for the inherited members?  How do you set access control for the new members?

  3. Under some circumstances, a pointer to one class can be set to point to an object of another class.  Can a pointer to a base class be set to point to a derived class?  Can a pointer to a derived class be set to point to a base class?

  4. When one class is derived from another, but the derivation access level is not specified, what is the default?  Is this what you are likely to want or not?

  5. Know the required names and syntax for declaring and defining constructors and destructors.

  6. When is a class object's constructor called?  When is its destructor called?

  7. We've seen that functions (including class member functions) can be overloaded.  Would this also be useful for constructors?  Is it legal for constructors?

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.