package sg.cho1; public class AccpTercher1 { private String name; // 教员 private int age;// 年龄 private String education;//学历 private String position;//职位 public AccpTercher1(String name,int age,String education,String position){ this.name=name; this.age=age; this.education=education; this.position=position; } 在测试里面写 package sg.cho1; public class AccpTercher1Test { public static void main(String[] args){ //对教员进行初始化 AccpTercher1 t=new AccpTercher1( 这个里面没有代码提示??是为什么呢); // }
2009-08-16 21:43
提问者采纳