🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #17961

How can I assign an Object reference to this in a constructor?

#17961
From: Hamish McNeish
Date: Tue, 08 Sep 1998 00:00
16 lines
1007 bytes
OK here's the plan,

I want to use my constructor to construct a new Object if one does not
exist otherwise I want to return a reference to an Object that matches
the Objects criteria.

Can I do this in a constructor? If so how?

I tried to assign this to the object but my assignment is ignored
Extent t = this;
t = theObject;

however this <> theObject( )

I'm guessing I can't do this in a Constructor, but I'm hoping someone
can tell me otherwise.
Technical Details
Message-ID: <35F4AE5D.2990AADF@sol.otago.ac.nz>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,db7ece1bb334c6e2,start
X-Google-Attributes: gidf74b3,public
From: Hamish McNeish <hamcneish@sol.otago.ac.nz>
Subject: How can I assign an Object reference to this in a constructor?
Date: 1998/09/08
Message-ID: <35F4AE5D.2990AADF@sol.otago.ac.nz>
X-Deja-AN: 388913680
Content-Transfer-Encoding: 7bit
Organization: Another Netscape Collabra Server User
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language