Askia Boly
March 1st, 2000, 11:05 AM
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.
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.