Refers to the newly created object through a common interface.Defines an instance for creating an object but letting subclasses decide which class to instantiate.The logic of this process is isolated form the actual steps used in creating the complex object, so the process can be used again to create a different object form the same set of simple objects as the first one. This way the construction process can be used to create different representations. This pattern allows a client object to construct a complex object by specifying only its type and content, being shielded from the details related to the object’s representation. If this is the problem you are being confronted with, you might want to try using the Builder (or Adaptive Builder) design pattern. An application might need a mechanism for building complex objects that is independent from the ones that make up the object. Complex objects are made of parts produced by other objects that need special care when being built. The more complex an application is the complexity of classes and objects used increases.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |