Home > Articles > Software Development & Management

  • Print
  • + Share This
This chapter is from the book Review Questions

Review Questions

Observations

  1. Define decouple and abstraction.
  2. How is implementation defined in the context of the Bridge pattern?
  3. What are the basic elements of a sequence diagram?
  4. What is Alexander’s view of how to use patterns? Does he advocate starting with the solution first or the problem to be solved first?
  5. What does commonality analysis seek to identify? What does variability analysis seek to identify?
  6. What is the basic problem being solved by the Bridge pattern?
  7. Define the “one rule, one place” strategy.
  8. What are the consequences of the Bridge pattern?

Interpretations

  1. The Gang of Four says that the intent of the Bridge pattern is to “decouple an abstraction from its implementation so that the two can vary independently.”
    • What does this mean?
    • Give an example.
  2. Why can tight coupling lead to an explosion in the number of classes?

Opinions and Applications

  1. “Look at objects in terms of their responsibilities rather than their behaviors.” How does this affect your view of the use of inheritance in an object-oriented system?
  2. Why do you think the Gang of Four call this pattern “Bridge”? Is it an appropriate name for what it is doing? Why or why not?
  • + Share This
  • 🔖 Save To Your Account