PTT評價

[請益] 人事系統

看板Soft_Job標題[請益] 人事系統作者
EijiHoba
(我要好工作)
時間推噓 推:0 噓:0 →:2

class employee {
private String ID;
private String Name;
private director Director;

public void setDirector(director,Employee_Director){
Director=Employee_Director;
}
}

class director extends employee {
public void fire(String Employee_ID){

}
public void assign_job(String Employee_ID){

}
}

public class Main
{
public static void main(String[] args) {

employee A = new employee();
A.setID("e87090013");
A.setName("Tom Ho");

director B = new director();
B.setID("c80010026");
B.setName("Jay Cho");
}
}

employee.setDirector的方法,出現錯誤 error <identifier> expected

請問要如何解?謝謝 ^_^


--

※ PTT 留言評論
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 125.229.180.64 (臺灣)
PTT 網址

testPtt01/13 14:42,

rotalume01/13 14:44