8. Design Patterns - PowerPoint PPT Presentation

About This Presentation
Title:

8. Design Patterns

Description:

Design must be general enough to address future problems and requirements ... Decorator. Fa ade. Flyweight. Proxy. Chain_of Responsibility. Command. Iterator. Mediator ... – PowerPoint PPT presentation

Number of Views:13
Avg rating:3.0/5.0
Slides: 9
Provided by: venkatsub
Learn more at: http://www2.cs.uh.edu
Category:

less

Transcript and Presenter's Notes

Title: 8. Design Patterns


1
8. Design Patterns
2
Design Patterns Need
  • Very hard to design reusable OO Software
  • Design must be specific to problem on hand
  • Design must be general enough to address future
    problems and requirements
  • Almost impossible to do it right the first time
  • Experienced designers dont reinvent the wheel
  • They use good solutions again and again
  • Find use recurring patterns of classes
    communicating objects

3
Design Patterns Benefits
  • Design Pattern systematically
  • names
  • explains
  • evaluates an important recurring design
  • Easier to reuse successful designs
    architectures
  • More accessible to developers of new systems

4
But, What is a Design Pattern?
  • Each pattern describes a problem which occurs
    over and over again in our environment, and then
    describes the core of the solution to that
    problem, in such a way that you can use this
    solution a million times over, without even doing
    it the same way twice

5
Design Pattern?
  • Description of communicating objects
    classes that are customized to solve
    a general design problem in a particular context
  • Pattern has four essential elements
  • Pattern Name
  • Problem
  • Solution
  • Consequences

6
Classification
  • Several Design Patterns are identified more
    will be identified
  • Classification helps to group these
  • Helps you to understand the related patterns

7
Classification...
  • Purpose
  • Creational - concerns process of object creation
  • Structural - concerns composition of classes or
    objects
  • Behavioral - concerns way in which classes or
    objects interact distribute responsibilities
  • Scope
  • Class - deals with relationship between classes
    and their subclasses - static
  • Object - deals with relationship between objects
    - dynamic

8
Classification of Catalog of Patterns
Purpose
Creational
Behavioral
Structural
Interpreter Template Method
Adapter
Scope
Class
Factory Method
Chain_of Responsibility Command Iterator Mediator
Memento Observer State Strategy Visitor
Object
Abstract Factory Builder Prototype Singleton
Adapter Bridge Composite Decorator Façade Flyweigh
t Proxy
Write a Comment
User Comments (0)
About PowerShow.com