Pola struktural ngrembug babagan carane obyek lan kelas dikomposis dadi struktur sing luwih gedhe — ngatur hubungan antarane entitas supaya mbentuk struktur sing fleksibel lan efisien. Kalebu Adapter, Decorator, Facade, Proxy, Composite, lan Bridge.
Apa sing ditangani pola struktural
STRUCTURAL patterns concern how objects/classes are COMPOSED/related:
→ organize relationships to build larger structures from objects
→ make components work together flexibly; simplify complex structures
→ about COMPOSITION and structure, not creation or behavior
Pola struktural utama
ADAPTER → make incompatible interfaces work together (wrap to convert one interface to
another) — "a translator"
DECORATOR → add behavior by wrapping objects (covered separately)
FACADE → provide a SIMPLE interface to a complex subsystem (hide complexity behind one
clean interface)
PROXY → a placeholder/surrogate controlling access to another object (lazy loading,
access control, caching, remote)
COMPOSITE → treat individual objects and groups of objects UNIFORMLY (tree structures)
BRIDGE → separate an abstraction from its implementation (vary independently)
