संरचनात्मक पॅटर्न हे वस्तू आणि वर्ग कसे रचित केले जातात यावर संबंधित आहेत — संस्थाओं मधील संबंध संघटित करून लचकदार, कार्यक्षम संरचना तयार करते. यामध्ये Adapter, Decorator, Facade, Proxy, Composite, आणि Bridge समाविष्ट आहेत.
संरचनात्मक पॅटर्न काय संबोधित करतात
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
मुख्य संरचनात्मक पॅटर्न
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)
