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
This note was uploaded on 10/15/2010 for the course CSIS 345 taught by Professor Dwightstrong during the Spring '10 term at Pittsburg State Uiversity.
- Spring '10