The self keyword points to the containing class and is unaware of subclasses.
self关键字指向的是包含类,且不会意识到子类。
As with properties, any attempt to call a private method from outside the containing class causes a fatal error.
与属性一样,尝试从包含类外部调用私有方法将导致致命错误。
Implement the extension method as a static method with at least the same visibility as the containing class.
以至少与包含类别相同的可视性,将扩充方法实作为静态方法。
应用推荐