-
protected只能用于自身及子类访问查看全部
-
不同于C++或java php是单继承的,只能有一个父类。 extends查看全部
-
//static attributes public static $prisident; # using to share the public data //static method public static function changePrisident($new_prisident){ self::$prisident = $new_prisident; # 操作符号 self:: # visit the itself class static member/attribute parent::$Super_prisident = $new_prisident; # 操作符号 parent:: # visit the parent class static member/attribute }查看全部
-
通过 className::$prisident 的方式,访问static 成员!查看全部
-
static 使用注意事项: //static attributes public static $prisident; //static method public static function changePrisident($new_prisident){ self::$prisident = $new_prisident; # 操作符号 :: }查看全部
-
NBAPlayer::changePrisident(""); echo NBAPlayer::$prisident."\n<br/>";查看全部
-
self::$prisident查看全部
-
static查看全部
-
引用? &$查看全部
-
显式: $jordan = null ; # 直接调用 析构函数; 隐式: //$jordan = null ; # 在函数执行结束时,自动调用 析构函数;查看全部
-
$jordan = new NBAPlayer("Jordan","1.98m","98kg","Bull","23"); 实例化,构造方法(参数list)!查看全部
-
instantiation call查看全部
-
实例化:instantiation vt. 例示:instantiate 实例: instance查看全部
-
UML Visual Paradigm查看全部
-
析构函数?查看全部
举报
0/150
提交
取消