If a class has one or more private constructors and no public constructors, other classes (except nested classes) cannot create instances of this class.
如果类具有一个或多个私有构造函数而没有公共构造函数,则其他类(除嵌套类外)无法创建该类的实例。
If a class has one or more private constructors and no public constructors, other classes (except nested classes) cannot create instances of this class.
如果类具有一个或多个私有构造函数而没有公共构造函数,则其他类(除嵌套类外)无法创建该类的实例。
应用推荐