Design Patterns Java™ Workbook
Chapter 11. Proxy CHALLENGE 11.4 Figure 11.6 shows the getApogee() call being forwarded. The rightmost object appears in a bold ...
Chapter 12. Chain of Responsibility............................................................................................. ...
Chapter 12. Chain of Responsibility a responsible engineer or may defer to the line they are part of or to the factory itself. F ...
Chapter 12. Chain of Responsibility package com.oozinoz.applications; import com.oozinoz.machine.*; public class AmbitiousMenu { ...
Chapter 12. Chain of Responsibility Anchoring a Chain........................................................................... ...
Chapter 12. Chain of Responsibility CHALLENGE 12.4 Fill in the constructors in Figure 12.2 to support a design that ensures that ...
Chapter 12. Chain of Responsibility Chain of Responsibility without Composite................................................... ...
Chapter 13. Flyweight........................................................................................................... ...
Chapter 13. Flyweight CHALLENGE 13.2 Either justify why the creators of Java made Stringobjects immutable or argue that this was ...
Chapter 13. Flyweight The Substance_1 class uses the atomic weight of a chemical when it calculates the number of moles of a mod ...
Chapter 13. Flyweight CHALLENGE 13.3 Complete the class diagram in Figure 13.3 to show a refactored Substance class and a new, i ...
Chapter 13. Flyweight Figure 13.4. The ChemicalFactory_1 class is a flyweight factory that returns Chemical objects. package com ...
Chapter 13. Flyweight CHALLENGE 13.4 How can you use the visibility of the Chemical_1 class to discourage other developers from ...
Chapter 13. Flyweight public double getAtomicWeight() { return atomicWeight; } } public static Chemical getChemical(String name) ...
Part III: Construction Patterns............................................................................... Part III: Constru ...
Chapter 14. Introducing Construction............................................................................................ ...
Chapter 14. Introducing Construction Figure 14.1. In certain conditions, Java will provide default constructors and default cons ...
Chapter 14. Introducing Construction Figure 14.2. The Firework class "inherits" classification constants by implementing the Cla ...
Chapter 14. Introducing Construction Summary.................................................................................... ...
Chapter 15. Builder............................................................................................................. ...
«
2
3
4
5
6
7
8
9
10
11
»
Free download pdf