Treffer: USING DESIGN PATTERNS.
Weitere Informationen
This article focuses on various design patterns, a catalog of useful tested methods for writing more effective object-oriented programs. Although design patterns, according to the author, are generally thought to be as an esoterica, they are actually extremely useful ways to write better programs and design patterns successfully overcome the difficulties in designing effective communication among various programming objects. Factory patterns, a certain category of design patterns, are used to return instances of several related programming classes. The factory class decides which of these classes is appropriate and returns an instance of that class. Factory patterns eliminate the need of conditional code inside a single programming class that is necessary when that class must serve two or more purposes. The author further holds, that design patterns like these are a powerful way to structure the interaction between programming classes in an object oriented programming language like Java, which are easy and fast to learn, with the obvious benefits of great simplicity and programming efficiency they bring to programming codes.