6
votes
Vote UpVote

Decorator Design Pattern in Delphi. Multiple Decorations

Yanniel's notes – In my previous post I introduced the decorator design pattern to you. I used a fairly simple example (a silly example if you wish) in order to give you a flavour of the pattern. I wrote Delphi code for that matter and I focused in having ONE, and only ONE, decorator class.This was the situation in the original example: we implemented a TConsole class with a Write method that writes a text to the standard output. Then, we used a TUpperCaseConsole class to decorate a TConsole object. The decoration itself was simple: uppercasing the text to be shown.Now I want to add a second decoration, which ...
Favorite? Off-Topic? Yanniel @ 2011-09-22 15:43

Statistics

Visits: 974
Votes: 6
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Bascy
GunSmoker
ket555
knight_killer
Ravaut123
SimaWB
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)