Content deleted Content added
adding the creator pattern |
→Creator: removing old section that I rewrote |
||
Line 13:
===Creator===
The '''Creator''' pattern solves the problem of who should be responsbile for the creation of a new instance of a class. The creator pattern is important because creation of objects is one of the most ubiquitous activites in an object-oriented system. A system that effectivly utilizes the creator pattern can also support low coupling, increased understandability, encapsulation and the liklihood that the object in question will be capable of sustaining reuse. Given two classes, class B and Class A, class B should be responsibile for the creation of A if class B contains or compositely aggregates, records, closley uses or contains the initlaizing information for class A. It could then be stated that B is a creator of A objects.<ref>(Larman 292)</ref>
===Controller===
|