Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #34471 > unrolled thread
| Started by | Arne Vajhøj <arne@vajhoej.dk> |
|---|---|
| First post | 2016-06-04 15:34 -0400 |
| Last post | 2016-06-04 15:34 -0400 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.java.programmer
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Why is it called "default constructor"? Arne Vajhøj <arne@vajhoej.dk> - 2016-06-04 15:34 -0400
| From | Arne Vajhøj <arne@vajhoej.dk> |
|---|---|
| Date | 2016-06-04 15:34 -0400 |
| Subject | Re: Why is it called "default constructor"? |
| Message-ID | <nivagu$14oh$1@gioia.aioe.org> |
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 top | Article view | comp.lang.java.programmer
csiph-web