Skip to content

Latest commit

 

History

History
12 lines (8 loc) · 374 Bytes

File metadata and controls

12 lines (8 loc) · 374 Bytes

Decorator Pattern

Type - Structural Pattern

Decorator pattern attached addional responsibilities to an object dynamically.Decorator provide a flexible alternative to subclassing for extending functionality.

Principles used in Decorator Pattern :-

  • Classes should be open for extension but closed for modification

GoBack to Design Patterns