Structural pattern จัดการเรื่องวิธีที่อ็อบเจ็กต์และคลาสถูกประกอบเข้าด้วยกันเป็นโครงสร้างที่ใหญ่ขึ้น โดยจัดระเบียบความสัมพันธ์ระหว่างเอนทิตีเพื่อสร้างโครงสร้างที่ยืดหยุ่นและมีประสิทธิภาพ ซึ่งรวมถึง Adapter, Decorator, Facade, Proxy, Composite และ Bridge
Structural pattern ตอบโจทย์อะไร
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
