The scope resolution operator should sit between the class name and the static property you wish to access.
范围解析操作符应位于类名和希望访问的静态属性之间。
You can access a static property using the scope resolution operator, which consists of a double colon (: :).
可以使用范围解析操作符来访问静态属性,该操作符由双冒号(:)组成。
To call a static method from outside of its class, use the class name together with the scope resolution operator and the name of the method.
要从类外部调用静态方法,可使用类名加上范围解析符和方法名。
Can the: : operator appear in the context different from scope resolution in qualified name lookup?
能:操作符出现在不同上下文从合格的名字查找范围分辨率?
Can the: : operator appear in the context different from scope resolution in qualified name lookup?
能:操作符出现在不同上下文从合格的名字查找范围分辨率?
应用推荐