Article View: borland.public.jbuilder.java.swing
Article #8944Re: package
From: John P. McGrath
Date: Wed, 14 Jun 2000 00:00
Date: Wed, 14 Jun 2000 00:00
15 lines
946 bytes
946 bytes
On Tue, 13 Jun 2000 16:36:13 -0500, Donald W. Fykes wrote: > How can I write a class in a separate file and use that class in another > file? > Say I have a class named myClass in a file named myClass.java > I would like to make a myClass object in another class called mainClass > in file mainClass.java If the two classes are in the same package, you do not have to do anything special to use one class from within the other. -- John P. McGrath <JPMcGrath@fast.net> <jpm@nscs.fast.net>
Technical Details
Message-ID:
<MPG.13b0e9eebdf84beb9899c6@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<8i68tr$aet1@bornews.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,3fe4521e83601147 X-Google-Attributes: gid111d45,public From: John P. McGrath <JPMcGrath@fast.net> Subject: Re: package Date: 2000/06/14 Message-ID: <MPG.13b0e9eebdf84beb9899c6@forums.borland.com> X-Deja-AN: 634308706 References: <8i68tr$aet1@bornews.borland.com> Organization: Another Netscape Collabra Server User Newsgroups: borland.public.jbuilder.java.swing