... 2. 3 访问修改函数 Access Modifiers 2. 5 静态和实例成员 Static And Instance Members 3 常量 Cogstants ...
基于1个网页-相关网页
If a class contains only static members, remember to mark the class as static or seal the class (NotInheritable) and give the class a private constructor to avoid instance creation.
如果类只包含静态成员,则要记得将该类标记为静态,或者密封该类(NotInheritable),并且还要为该类提供一个私有构造函数,以避免实例创建。
This is true for both static members and instance members.
对于静态成员和实例成员来说,都是正确的。
应用推荐