Home / Design Pattern / Structural
Structural Design Patterns in Java
Structural patterns are about how classes and objects are joined together to make bigger structures. They keep the structure flexible and simple. There are 7 structural patterns.
AdapterAdapter sits between two classes that do not fit together and translates one interface into the other.BridgeBridge splits a class into two parts, what it is and how it works, so both can change on their own.CompositeComposite lets you treat one object and a group of objects in the same way.DecoratorDecorator adds new features to an object by wrapping it, without changing its class.FacadeFacade gives one simple class in front of a complex system.FlyweightFlyweight saves memory by sharing objects that are the same, instead of creating thousands of copies.ProxyProxy is a stand-in object that controls access to the real object.