Using Object-Oriented Design Patterns
 

It is possible to apply a design pattern on an existing class.  For instance, if you want to apply the Singleton design pattern on a class named PrinterManager:

  1. In a class diagram, create a class and name it PrinterManager
  2. Select the class by right-clicking it and from the pop-up menu, and choose Apply Design Pattern->Singleton
Your class will be renamed PrinterManagerSingleton, and elements of the Singleton Design Patterns will apply as fields and methods of the class.  A note will also appear describing how to use this class from the client side. 

Design patterns are categorized as creational, structural or behavioral design patterns.  The following design patterns are currently supported:
 
 
Creational Structural Behavioral
Factory Method
Prototype
Singleton
Adapter
Composite
Proxy
Chain of Responsibility
Command
Iterator
Observer
State
Strategy
Template Method