Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news-1.dfn.de!news.dfn.de!news.informatik.hu-berlin.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Jim Gibson Newsgroups: comp.lang.java.programmer Subject: Re: Interface with implied Constructor Date: Tue, 23 Jul 2013 14:43:48 -0700 Lines: 31 Message-ID: <230720131443488398%jimsgibson@gmail.com> References: <925adeb1-65b5-4a50-86a8-4f04784f8da0@googlegroups.com> <1KhGt.130731$7o1.74691@fx17.iad> <852ru8909m1p1eqcnhpotjpbmv1dd5hmui@4ax.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: individual.net 9s0V7wiND7dDNkUOx+zgOgeLpPJgiwBiYgm1fhWCCdmcJZ/eUZ X-Orig-Path: jimsgibson Cancel-Lock: sha1:2eE3tVJLn8CPsv1VS//Vt9oKHD4= User-Agent: Thoth/1.9.0 (Mac OS X) Xref: csiph.com comp.lang.java.programmer:24810 In article , Gene Wirchenko wrote: > On Mon, 22 Jul 2013 16:02:05 -0400, Eric Sosman > wrote: > > >On 7/22/2013 3:39 PM, Gene Wirchenko wrote: > >>[...] I just want a prototype of the > >> constructor with the rest of the prototypes. > > > > I don't think anyone's in doubt about what you and Richard > >want. The question that still burns is: > > > > "Why?" > > An interface documents. I can put additional comments in there > and do because it helps the signatures make sense. Since I have all > this, why not have the constructors there, too? Then, I have the API > documented in one place. An interface only documents (requires or specifies, actually) /part/ of class behavior. There are usually other aspects of the class that must be addressed by its constructors. Those aspects are outside the scope of the interface. Classes can implement more than one interface. What should the compiler demand in the case of multiple, mutually-exclusive constructor requirements? -- Jim Gibson