//一个人员信息,怎样将他们输出?
public class Personn {
private String name;
private int age;
private String address;
public Personn(String myname,int myage,String myaddress){//构造方法
name=myname;
age=myage;
address=myaddress;
}
public static void main(String[] args){
Personn p3=new Personn("Will",21,"Hubei");
//输出.........................................
}
}
[此贴子已经被作者于2007-9-30 11:40:09编辑过]