This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: Design Patterns using Java What are Patterns? Patterns are snippets of reusable design. Design solutions to software development problems. Used to help insure reusability of code Categories of Patterns Creational Patterns Deal with the process of object creation. Structural Patterns Deal with the static composition and structure of classes and objects Behavioral Patterns Deal with dynamic interaction among classes and objects. Common Patterns Decorator Pattern Singleton Pattern Template Method Pattern Abstract Factory Pattern Observer Pattern Decorator Pattern Category Structural Intent To add dynamic functionality to an existing object. Has same interface but has additional or altered behaviors. Flexible alternative to inheritance Using inheritance is a static solution Implementation Create a Decorator object that encloses an existing object. It has the same interface as the enclosed object....
View Full Document
- Spring '10