Java

Topic: Design pattern

What are the structural patterns ?

Structural patterns prescribe the organization of classes and objects. These patternsare concerned with how classes inherit from each other or how they are composedfrom other classes.Common structural patterns include Adapter, Proxy, and Decorator patterns. Thesepatterns are similar in that they introduce a level of indirection between a client classand a class it wants to use. Their intents are different, however. Adapter usesindirection to modify the interface of a class to make it easier for a client class to useit. Decorator uses indirection to add behavior to a class, without unduly affecting theclient class. Proxy uses indirection to transparently provide a stand-in for anotherclass.

Browse random answers: