A private constructor is a special instance constructor.
私有构造函数是一种特殊的实例构造函数。
Constructor call is valid only as the first statement in an instance constructor.
构造函数调用仅作为实例构造函数中的第一条语句有效。
Do declare static classes as sealed and abstract, and add a private instance constructor, if your programming language does not have built-in support for static classes.
如果编程语言没有对静态类的内置支持,则应将静态类声明为密封的和抽象的,并添加一个私有实例构造函数。
Do declare static classes as sealed and abstract, and add a private instance constructor, if your programming language does not have built-in support for static classes.
如果编程语言没有对静态类的内置支持,则应将静态类声明为密封的和抽象的,并添加一个私有实例构造函数。
应用推荐