摘要:
<?php class Preferences{ private $props = []; //实例载体,利用静态的属性 private static $instance; private function __construct(){} public static function getInst 阅读全文
摘要:
$lessons[] = new Seminar(4, new TimedCostStrategy() );$lessons[] = new Lecture(4, new FixedCostStrategy() ); foreach ($lessons as $lesson) { print " l 阅读全文