Questions

  1. Explain the meaning of the phrase "object orientation reduces the complexity of programming."
  2. Explain the role of constructors. What role do destructors play?
  3. What is the meaning of const? Give some examples.
  4. Characterize the two kinds of type conversions supported by C++.
  5. Why do you need friends?
  6. What is a canonical class? Characterize its ingredients and give an example.
  7. Explain the handler/body idiom. Give an example.
  8. What are generic types? Why are they useful? Explain how C++ supports generic types. Give an example.
  9. Explain how inheritance may jeopardize encapsulation. Can you think of a solution?
  10. Give an example of a class allowing external clients access to private data.
  11. Discuss the advantages and disadvantages of inheritance.
  12. What extensions to the classical object model can you think of? Why are these extensions needed?

slide: Questions Chapter 2