Design Patter by PHP[4]: Factory Method
- Date
- 2006-10-31 (Tue)
- Category
- Design Pattern | php
第四回目は Factory Method です。コードは毎回 Subversion のレポジトリ
にあります。
今回の気づき
- PHP って packaging 機構はないのかなぁ。。PEAR にあるにはあるが、ちょとめんどい。そろそろ class auto load の仕組みをそろそろ覚えるべきかも。
実行結果は
$ php main.php
The card for Takashi will be made.
The card for John will be made.
The card for Carren will be made.
The card for Takashi will be used.
The card for John will be used.
The card for Carren will be used.
でした。
Comment:0
Trackback:0
- TrackBack URL for this entry
- http://blogs.grf-design.com/mt/mt-tb.cgi/195
- Listed below are links to weblogs that reference
- Design Patter by PHP[4]: Factory Method from The Croton