PPT11_Design_Patterns - Design Patterns using Java What are...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the 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

Page1 / 2

PPT11_Design_Patterns - Design Patterns using Java What are...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online