<<< Abstract Factory | Index | Abstract Maze Factory Sample >>> |
Client must use an abstract interface, known as abstract factory to manufacture instances of object supply.
Client must also use an abstract interface to access object supply.
Abstract factory relies on plugin-style concrete suppliers (concrete factories.)
For example, BombedMazeFactory derives from MazeFactory and re-defines BombedMazeFactory::MakeWall( ) operation:
Wall* MazeFactory::MakeWall(); Wall* BombedMazeFactory::MakeWall();
<<< Abstract Factory | Index | Abstract Maze Factory Sample >>> |