面向对象术语概念

it2022-06-28  71

静态变量或者方法的调用使用双冒号  Class::method()。该符号的名称为 范围解析操作符 参考 https://secure.php.net/manual/zh/language.oop5.paamayim-nekudotayim.php

对象或者方法的调用采用 -> 符号来使用  $this->method 。该符号的名称为 对象运算符  参考 https://secure.php.net/manual/zh/language.oop5.properties.php

 

转载于:https://www.cnblogs.com/lizhaoyao/p/7115931.html


最新回复(0)