Roles

[Previous] [Next]

  • ObjectFactory A concrete class that maintains a list of objects that support the Prototype interface. This class instructs these objects to clone themselves and returns references to the clones to the requesting client.
  • Prototype The interface that defines a method for cloning instances of classes that implement this interface. This interface can be a hybrid, meaning that it not only defines the cloning method, but it defines other operations as well.
  • ConcretePrototype A concrete class that implements the Prototype interface. When the Clone method of the Prototype interface is invoked, an instance of this class will create a copy of itself and a reference to the copy will be returned to the calling program.


Microsoft Visual Basic Design Patterns
Microsoft Visual Basic Design Patterns (Microsoft Professional Series)
ISBN: B00006L567
EAN: N/A
Year: 2000
Pages: 148

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net