public static function Test():slef { //函数体 }
public static function Test():slef{ //Function body}
What does: self or: Test mean here?
大牛之路
Use a colon after the method name to declare the type of the return value. It should be self in the code
Use a colon after the method name to declare the type of the return value. It should be self in the code