O'Reilly logo

AdvancED ActionScript 3.0: Design Patterns by Ben Smith

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The Abstract Factory Pattern

The Abstract Factory pattern provides an interface for creating families of related products while concealing the object-instantiation process. Figure 6-3 shows the class diagram.

Image

Figure 6-3. Abstract Factory pattern class diagram

This pattern has the following parts:

  • Abstract product
  • Concrete product
  • Abstract creator
  • Concrete creator
  • Client

The pattern's benefits are as follows:

  • Uses abstracts factories of like interfaces
  • Enables the interchanging of product families

It also has this drawback:

  • Introducing a new product is difficult.

A Comprehensive Look

The Abstract Factory pattern is an extension of the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required