设计模式之----------适配器模式

adaptee=$adaptee;
		
	}
	
	public function simpleFunction1(){
		echo $this->adaptee->simpleFunction1();
		
	}
	
	public function simpleFunction2(){
		echo 'Adapter Simple ';
		
	}
}

class client{
	public static function main(){
		$adaptee = new Adaptee();
		$adapter = new Adapter($adaptee);
		$adapter->simpleFunction1();
		$adapter->simpleFunction2();
	}

}

client::main();

本文题目:设计模式之----------适配器模式
浏览路径:http://lszwz.com/article/gjdohc.html

其他资讯

售后响应及时

7×24小时客服热线

数据备份

更安全、更高效、更稳定

价格公道精准

项目经理精准报价不弄虚作假

合作无风险

重合同讲信誉,无效全额退款