Design Patterns Java™ Workbook
Appendix B. Solutions Abstract Factory (Chapter 17)............................................................................. ...
Appendix B. Solutions SOLUTION 17.2............................................................................................. ...
Appendix B. Solutions public abstract CreditCheck createCreditCheck(); public abstract ShippingCheck createShippingCheck(); } A ...
Appendix B. Solutions Figure B.22. The abstract ComponentKit class establishes the palette of components that concrete subclasse ...
Appendix B. Solutions Prototype (Chapter 18).................................................................................... ...
Appendix B. Solutions copy' operation." To remember the precise function of Object.clone(), it helps to think of this method as ...
Appendix B. Solutions public Object clone() { try { MachineSimulator copy = (MachineSimulator) super.clone(); copy.location = (L ...
Appendix B. Solutions Memento (Chapter 19)...................................................................................... ...
Appendix B. Solutions method should not have to check that the mementos stack has at least one memento. But it doesn't hurt. SOL ...
Appendix B. Solutions Introducing Operations (Chapter 20) SOLUTION 20.1......................................................... ...
Appendix B. Solutions Template Method (Chapter 21).............................................................................. ...
Appendix B. Solutions package com.oozinoz.aster.client; import com.oozinoz.aster.*; public class OzAsterStarPress extends AsterS ...
Appendix B. Solutions State (Chapter 22)........................................................................................ ...
Appendix B. Solutions public void complete() { door.setState(door.CLOSED); } } SOLUTION 22.5.................................... ...
Appendix B. Solutions package com.oozinoz.carousel_sol; public interface DoorConstants { DoorState CLOSED = new DoorClosed(); Do ...
Appendix B. Solutions Strategy (Chapter 23)..................................................................................... ...
Appendix B. Solutions public Firework recommend(Customer c) { return (Firework) LikeMyStuff.suggest(c); } } This code creates a ...
Appendix B. Solutions Command (Chapter 24)...................................................................................... ...
Appendix B. Solutions SOLUTION 24.3............................................................................................. ...
Appendix B. Solutions SOLUTION 24.6............................................................................................. ...
«
11
12
13
14
15
16
17
18
19
20
»
Free download pdf