Article View: borland.public.jbuilder.java.language
Article #15055Re: Illogical constructor behaviour?
From: Tom.Eugelink
Date: Wed, 14 Jul 1999 00:00
Date: Wed, 14 Jul 1999 00:00
17 lines
1159 bytes
1159 bytes
On 13 Jul 1999 11:06:11 +0200, Tor Iver Wilhelmsen <tor.wilhelmsen@sds.no> wrote: >Tom.Eugelink@OVSoftware.com writes: > >> Afterall, I did enter the constructor of the fireman class, so I feel >> that that is enough reason to have all instance variables not only >> allocated but also declared. > >No, because the language _specifies_ that the superclass constructor >is called first (all the way down to Object) before initialization of >fields happens. This is known behaviour. Well, then we can conclude that I do not agree with that specification, unless someone explains the reason for it to me. Tom
Technical Details
Message-ID:
<378c7224.5379925@forums.inprise.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<3789a7ea.1163072@forums.inprise.com> <uzp1241hv.fsf@sds.no> <378adee2.3105084@forums.inprise.com> <uhfn8aph8.fsf@sds.no>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,c150801d0979e255 X-Google-Attributes: gidf74b3,public From: Tom.Eugelink@OVSoftware.com Subject: Re: Illogical constructor behaviour? Date: 1999/07/14 Message-ID: <378c7224.5379925@forums.inprise.com> X-Deja-AN: 500886220 References: <3789a7ea.1163072@forums.inprise.com> <uzp1241hv.fsf@sds.no> <378adee2.3105084@forums.inprise.com> <uhfn8aph8.fsf@sds.no> Organization: Another Netscape Collabra Server User Newsgroups: borland.public.jbuilder.java.language