[請益] 人事系統已刪文
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.cc), 來自: 125.229.180.64 (臺灣)
※ 文章網址: https://www.ptt.cc/bbs/Soft_Job/M.1673591680.A.D13.html
→
01/13 14:42,
3年前
, 1F
01/13 14:42, 1F
→
01/13 14:44,
3年前
, 2F
01/13 14:44, 2F
噓
01/13 14:46,
3年前
, 3F
01/13 14:46, 3F
推
01/13 14:46,
3年前
, 4F
01/13 14:46, 4F
噓
01/13 14:46,
3年前
, 5F
01/13 14:46, 5F
噓
01/13 14:47,
3年前
, 6F
01/13 14:47, 6F
噓
01/13 14:50,
3年前
, 7F
01/13 14:50, 7F
噓
01/13 14:53,
3年前
, 8F
01/13 14:53, 8F
噓
01/13 14:59,
3年前
, 9F
01/13 14:59, 9F
Soft_Job 近期熱門文章
PTT職涯區 即時熱門文章