struc_patterns
struc_patterns
Chapter IV
Structural Patterns
Presented by
Dr. Koppala Guravaiah
Assistant Professor
IIIT Kottayam
Syllabus
Structural Patterns
• Adaptor,
• Bridge,
• Composite,
Implementation in various
• Decorator,
languages like Python, Java
• Facade,
• Flyweight,
• Proxy
Reference:
• Erich Gamma, Richard Helm, Ralph Johnson, John Vlissides
Design Patterns: Elements of Reusable Object oriented Software
Addison-Wesley
IOE 321 SDP 2
Introduction
• Structural patterns are concerned with how classes and
objects are composed to form larger structures.
• Structural class patterns use inheritance to compose
interfaces or implementations.
• As a simple example, consider how multiple inheritance
mixes two or more classes into one.
• The result is a class that combines the properties of its
parent classes. This pattern is particularly useful for
making independently developed class libraries work
together.
• Notice the bridge between Shape and Color interfaces and use of composition
in implementing the bridge pattern.
Ref.: https://refactoring.guru/design-patterns/structural-patterns
Ref.: https://refactoring.guru/design-patterns/structural-patterns
Ref.: https://refactoring.guru/design-patterns/structural-patterns