Microsoft Visual Basic Design Patterns (Microsoft Professional Series)

[Previous] [Next]

The client application doesn't declare variables of the concrete class type. Instead it declares variables that maintain references to objects that support the Product and Factory interfaces. How the client obtains a reference to a ConcreteFactory object can vary depending on the system design, but references to ConcreteProduct objects are always provided by the ConcreteFactory.

Категории