Design Patterns Java™ Workbook
Chapter 15. Builder Figure 15.1. A builder class offloads construction logic from a domain class and can accept initialization p ...
Chapter 15. Builder public interface ReservationConstants { public static final int MINHEAD = 25; public static final double MIN ...
Chapter 15. Builder Code that uses a builder will look something like the following: package com.oozinoz.applications; import co ...
Chapter 15. Builder Building a Counteroffer..................................................................................... ...
Chapter 16. Factory Method...................................................................................................... ...
Chapter 16. Factory Method CHALLENGE 16.2 Explain how the intent of FACTORY METHOD is different from the intent of the BorderFac ...
Chapter 16. Factory Method CHALLENGE 16.3 What class is the Iterator object in this code? The point of the FACTORY METHOD patter ...
Chapter 16. Factory Method Figure 16.1. You can instantiate one of these classes to check a customer's credit, depending on whet ...
Chapter 16. Factory Method CHALLENGE 16.4 Draw a class diagram that establishes a way to create a credit-checking object while r ...
Chapter 16. Factory Method Figure 16.2. The Machine hierarchy contains logic for controlling physical machines and for planning. ...
Chapter 16. Factory Method CHALLENGE 16.6 Fill in the diagram of a Machine/MachinePlanner parallel hierarchy in Figure 16.3. Fig ...
Chapter 16. Factory Method behavior. FACTORY METHOD lets you connect parallel hierarchies by letting subclasses in one hierarchy ...
Chapter 17. Abstract Factory.................................................................................................... ...
Chapter 17. Abstract Factory Now suppose that a requirements analyst tells you that Oozinoz wants to start servicing customers i ...
Chapter 17. Abstract Factory com.oozinoz.check.us. Each of these packages can contain a concrete version of the factory class an ...
Chapter 17. Abstract Factory CHALLENGE 17.2 Complete the code for CheckFactoryCanada.java: package com.oozinoz.check.canada; imp ...
Chapter 17. Abstract Factory CHALLENGE 17.4 Write down an argument supporting the decision to place each factory and its related ...
Chapter 17. Abstract Factory CHALLENGE 17.5 Write down two reasons why Oozinoz might want to provide different look-and-feels in ...
Chapter 18. Prototype........................................................................................................... ...
Chapter 18. Prototype CHALLENGE 18.1 Draw a diagram of a UIKit class, showing instance variables for prototypical button and tex ...
«
3
4
5
6
7
8
9
10
11
12
»
Free download pdf