Static classes can be used when there is no data or behavior in the class that depends on object identity.

  • 当类中没有依赖对象标识的数据或行为时,就可以使用静态类。
目录 查词历史