0% found this document useful (0 votes)
30 views

Ummary of Reational Atterns

The document summarizes several creational patterns: the Factory Pattern chooses classes based on provided data, the Abstract Factory Pattern returns groups of classes or their factories, and the Builder Pattern assembles objects to create new ones often using a Factory; additionally, the Prototype Pattern copies existing classes instead of creating new instances when expensive, and the Singleton Pattern ensures only one instance of a class can exist and is globally accessible.

Uploaded by

johnrasquinha
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
30 views

Ummary of Reational Atterns

The document summarizes several creational patterns: the Factory Pattern chooses classes based on provided data, the Abstract Factory Pattern returns groups of classes or their factories, and the Builder Pattern assembles objects to create new ones often using a Factory; additionally, the Prototype Pattern copies existing classes instead of creating new instances when expensive, and the Singleton Pattern ensures only one instance of a class can exist and is globally accessible.

Uploaded by

johnrasquinha
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

SUMMARY OF CREATIONAL PATTERNS

The Factory Pattern is used to choose and return an instance of a class from a number of similar classes based on data you provide to the factory. The Abstract Factory Pattern is used to return one of several groups of classes. In some cases it actually returns a Factory for that group of classes. The Builder Pattern assembles a number of objects to make a new object, based on the data with which it is presented. Frequently, the choice of which way the objects are assembled is achieved using a Factory. The Prototype Pattern copies or clones an existing class rather than creating a new instance when creating new instances is more expensive. The Singleton Pattern is a pattern that insures there is one and only one instance of an object, and that it is possible to obtain global access to that one instance.

You might also like