您可以使用正确类型的隐式或显式接收器来调用 protected 方法。
您只能通过隐式接收器调用 private 方法 (对 self setter 方法除外,例如 self.foo=)。
self
self.foo=
您只能从方法处理程序的上下文调用 protected 和 private 方法。