Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #34471
| From | Arne Vajhøj <arne@vajhoej.dk> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Why is it called "default constructor"? |
| Date | 2016-06-04 15:34 -0400 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <nivagu$14oh$1@gioia.aioe.org> (permalink) |
| References | <default-constructor-20160604183650@ram.dialup.fu-berlin.de> |
On 6/4/2016 1:39 PM, Stefan Ram wrote: > When a constructor is implicitly declared, it often has no > parameters and it often is called »default constructor«. > > »Default« means »used when something is missing«. > > So, why is it called »default constructor«? > > A - Because it has no parameters and therefore it is > used when /arguments/ are missing. > > B - Because it is implicitly declared and therefore it is > used when an /explicit declaration/ is missing > > ? #B is the terminology in Java. #A is the terminology in C++. I would use the term according to the above, but when seeing the term I would be aware that it could have the other meaning. Arne
Back to comp.lang.java.programmer | Previous | Next | Find similar | Unroll thread
Re: Why is it called "default constructor"? Arne Vajhøj <arne@vajhoej.dk> - 2016-06-04 15:34 -0400
csiph-web