4
votes
Vote UpVote

Decorator Design Pattern in Delphi. Single decoration

Yanniel's notes – Decorator (also referred as Wrapper) is classified by GoF as a structural pattern. Its purpose is to:“Attach additional responsibilities to an object dynamically. Decorators provide a flexible alternative to subclassing for extending functionality.”   Both inheritance and the decorator pattern aim towards extending the functionality. This is what they have in common. There are a couple of remarkable differences:Inheritance extends the functionality at compilation time (statically). The decorator pattern extends the functionality at runtime (dynamically). Inheritance extends the ...
Favorite? Off-Topic? Yanniel @ 2011-08-26 15:57

Statistics

Visits: 974
Votes: 4
Favorites: 0
Off-Topic: 1

Visits by Source

User Actions

Users who voted for this posting

Alister Christie
Jørn E. Angeltveit
Primoz Gabrijelcic
Yogi Yang
Subscribe:
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News

Sponsor

 
Please login or register to use this functionality.
(click on this box to dismiss)