


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



1
completely loaded.postponed until the image isactual image display can bescreen lays out correctly, but theimage is to be displayed so that themust be some indication that anWhen the program starts, there
images are available.around the images even before theand web browsers that lay out textprograms such as word processorsThis is particularly important in 3
simpler one.The Proxy pattern is used when you need to represent a complex object by a
you to postpone this creation until you need the actual object.If creating an object is expensive in time or computer resources, Proxy allows
object.object is loaded, it passes on the method calls from the Proxy to the actualA Proxy usually has the same methods as the object it represents, and once the
for that user.If the object has limited access rights, the proxy can validate the access permissions
case, the proxy can load the real object only when it is needed.may set up a number of objects which may not all be used right away. In thatobject and the actual need to access it. For example, program initializationProxies can also be used to distinguish between requesting an instance of an
5
7
13
The (^) Adapter (^) pattern, used to change the interface of one class to that of another one.
The (^) Bridge (^) pattern, intended to keep the interface to your client program use. You can then change the interface and the underlying class separately.constant while allowing you to change the actual kind of class you display or
The (^) Composite (^) pattern, a collection of objects, any one of which may be either itself a Composite, or just a primitive object.
The (^) Decorator (^) pattern, a class that surrounds a given class, adds new capabilities to it, and passes all the unchanged methods to the underlying class.
The (^) Façade (^) pattern, which groups a complex object hierarchy and provides a new, simpler interface to access those data.
The (^) Flyweight (^) pattern, which provides a way to limit the proliferation of class and passing it in during various execution methods.small, similar class instances by moving some of the class data outside the
The (^) Proxy (^) pattern, which provides a simple place-holder class for a more complex class which is expensive to instantiate.