list of most-frequently-used design patterns

FROM HEAD FIRST DESIGN PATTERNS ide

strategy pattern defines a family of algorithms, encapsulates each one, and makes them interchangeable. Strategy lets the algorithm vary independently from clients that use it.flex

Observer pattern defines a one-to-many dependency between objects so that when one object changes state, all its dependents are notified and updated automatically.server

Decorator Pattern attaches additional responsibility to an object dynamically. Decorators provide a flexible alternative to subclassing for extending functionality.ci

Factory Method defines an interface for creating an object, but let subclasses decide which class to instantiate. Factory Method lets a class defer instantiation to its subclasses.it

Abstract Factory provides an interface for creating families of related or dependent objects without specifying their concrete classes.io

Singleton Patternfunction

Command Patternclass

Adapter Patterncli

Facade Patternobject

Template Method Pattern

Iterator Pattern

Composite Pattern

State Pattern

Proxy Pattern

相關文章
相關標籤/搜索