2013年7月12日

Decorator模式

摘要: > */abstract class Tile { abstract function getWealthFactor();}class Plains extends Tile{ private $wealthfactor = 2; public function getWealthFactor() { return $this->wealthfactor; }}//class DiamondPlains extends Plains { function getWealthFactor() { return parent::g... 阅读全文

posted @ 2013-07-12 11:58 mtima 阅读(204) 评论(0) 推荐(0) 编辑

导航