Inheritance Q5

Quiz 5

  1. Define “derived class.”
  2. Define “base class.”
  3. Can a class be both derived and base?
  4. What does the “Substitution Principle” say?
  5. Describe the “Slicing” effect.
  6. What is about slicing and base class pointers?
  7. Which problems may occur when casting pointers pointing to objects in an object hierarchy?
  8. Why should you use multiple inheritance only in a distinct way?