|
-
March 1st, 2000, 12:05 PM
#1
Instanciate an Object
hello,
I would like a litle enlightment about instaanciation in Java.
For example I have the following code creating an object "Person"
public class Person {
public String name ;
public String dept ;
public Person() {
this.name = "" ;
this.dept = "General" ;
}
}
And yet I would like to instanciate this Object "Person" within another code.
Please tell me how this works in java and what should I take care off when instantiating an Object in another source code.
Thanks.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|