Talk:Nullary constructor
This article is rated Stub-class on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | ||||||||||||||||||||||||||||||||||||||
|
nullary ≠ default
[edit]In some languages, a nullary constructor is indeed the default. In others, there is no default constructor per se, but there still may be nullary constructors. Much this point was made earlier when it was proposed at “Default constructor” that it be merged with this article. Unfortunately, “Default constructor” presently draws upon a sloppy source for its discussion. That article needs at least enough work to explain why a default construct is a default constructor, as opposed mere to being a nullary constructor. —SlamDiego←T 10:58, 17 July 2009 (UTC)
This misses a key "use"
[edit]AS pointed out, nullary and default are not quite the same, aside from default constructors another big use is two-phase construction which is used for serialisation. Splitting construction to a nullary constructor and a "Create" method.
I was hoping to see something about those considerations