Content deleted Content added
→Structure: Added class diagram |
|||
Line 105:
===Encapsulation===
Factory methods encapsulate the creation of objects.
This can be useful if the creation process is very complex, for example if it depends on settings in configuration files or on user input.
Consider as an example a program to read [[image file]]s and make [[thumbnail]]s out of them.
|