In C++, a constructor that takes no arguments is called the default
constructor. This term was in use for many years before Java
appeared, but for some reason the Java designers decided to use the
term no-arg constructor, which I found very awkward and
unnecessary, so I resisted and attempted to continue using “default
constructor.” Java 8 has introduced the use of default as a keyword
for method definitions, so I must relent, choke down a bit of bile, and
use no-arg.
Like any method,
建议修改:
根据第六章作者认为在本书更适合用无参构造器来命名,就像一个没有参数的方法一样,而且第六章的小标题也是 无参构造器。