Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!weretis.net!feeder4.news.weretis.net!news.mixmin.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Daniele Futtorovic Newsgroups: comp.lang.java.programmer Subject: Re: calling own methods from constructor Date: Fri, 08 Apr 2011 20:02:28 +0200 Organization: A noiseless patient Spider Lines: 19 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Fri, 8 Apr 2011 18:02:48 +0000 (UTC) Injection-Info: mx01.eternal-september.org; posting-host="anOFxJjNOZfRddAX9zW+Yg"; logging-data="8386"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+TE4bUVMkLRUoxLsuy8ylj" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 In-Reply-To: Cancel-Lock: sha1:h83dkwd7ASgVlAP3R9ApYCbxJjI= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:2995 On 08/04/2011 11:30, Andreas Leitgeb allegedly wrote: > Daniele Futtorovic wrote: >> On 08/04/2011 01:51, Daniele Futtorovic allegedly wrote: >>> class BaseClass implements [...] { > > In principle this is the same kind of example as Tom's. No. In Tom's example, the subclass provided functionality to the superclass. In my example, the subclass adds to what the superclass does. I also presented that example to illustrate how implementing the Externalizable contract can impact the issue. Because Externalizable mandates a no-arg c'tor, some mechanisms one might have used in similar cases cannot be used there. -- DF. An escaped convict once said to me: "Alcatraz is the place to be"