|
Re: Importing classes
|
Posted: Nov 21, 2005 10:15 PM
|
|
> If I have made a class named PERSON, what do I have to > write in another .java document to be able access and make > objects of type PERSON?
PERSON person = new PERSON();
// That is if you have the constructor:
// public PERSON() in PERSON
Honestly though, you should probably come back with a more specific question. Coz there is a whole lot of stuff you probably need to know such as accessing Methods in that class (I'm assuming you're a Newbie), etc...
I suggest you google a Java Classes Tutorial. Or Java Objects Tutorial after a few hours of reading and toying around with some examples I'm sure you'll have some more specific questions.
Good luck.
|
|