Article View: borland.public.jbuilder.java.language
Article #8635Re: newbie question
From: John McGrath TeamB
Date: Mon, 05 Mar 2001 03:07
Date: Mon, 05 Mar 2001 03:07
18 lines
1567 bytes
1567 bytes
On Sun, 4 Mar 2001 20:41:27 +0100, sandelf wrote:
> I mean recursive instantiation of a class inside its definition.
> How it is achieved, why there is no infinitive chain of creation?
That would only apply if an additional instance of the class was
unconditionally created in all constructors for the class. In your
example, you create an instance of in the main() method. Not only will
this work, but it is very typical of Java programs.
--
Regards,
John McGrath [TeamB]
---------------------------------------------------
Before sending me e-mail, please read:
http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID:
<MPG.150cc7703e70d01a98a009@forums.borland.com>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!newsswitch.lcs.mit.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!dispose.news.demon.net!demon!newsfeed.icl.net!newsfeed.icl.net!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!news1.dtag.de!news.gwi-ag.com!bornews.borland.com!not-for-mailReferences:
<3a9f5ade$1_2@dnews> <3a9f6830_2@dnews> <3aa29a70_1@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,3a5b2c9b663406b5 X-Google-Attributes: gidf74b3,public X-Google-ArrivalTime: 2001-03-04 19:14:07 PST From: John McGrath [TeamB] <ng-b@JPMcGrath.net> Newsgroups: borland.public.jbuilder.java.language Subject: Re: newbie question Date: Sun, 4 Mar 2001 22:07:44 -0500 Organization: Another Netscape Collabra Server User Lines: 18 Message-ID: <MPG.150cc7703e70d01a98a009@forums.borland.com> References: <3a9f5ade$1_2@dnews> <3a9f6830_2@dnews> <3aa29a70_1@dnews> NNTP-Posting-Host: dslcv1-60.fast.net X-Newsreader: MicroPlanet Gravity v2.30 Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!newsswitch.lcs.mit.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!dispose.news.demon.net!demon!newsfeed.icl.net!newsfeed.icl.net!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!news1.dtag.de!news.gwi-ag.com!bornews.borland.com!not-for-mail