Reply to The Adapter Pattern in PHP5

Your name:

Reply:


Posted by FluffyCat on 08/22/06 21:52

In June I continued my series of design patterns examples using PHP
5 with the Adapter Pattern. Here now is my 17th design pattern
example, the Bridge Pattern.

http://www.fluffycat.com/PHP-Design-Patterns/Bridge/

In the Bridge Pattern we have an abstraction and implementation in
different class hierarchies.

Not something I use all the time, but if you have a situation where a
class varies functionality based on two completely independent needs
it can be useful.

The classis GOF* implementation has a class needing to create
different windows on different platforms. So, you don't need to redo
anything about the platofrms when you add a new type of window or vice
versa.

*GOF - Gang of Four, referring to the four authors of "Elements of
Reusable Object-Oriented Software".

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация