函数可见性分析

  • public - 任意访问
  • private - 仅当前合约内(不能被继承)
  • internal - 仅当前合约及所继承的合约
  • external - 仅外部访问(在内部也只能用外部访问方式访问— this.f的方式)