本文共 1686 字,大约阅读时间需要 5 分钟。
1
public interface EmployService { void sign (); //打卡 void knockCode();//敲代码 void recruit(); //招聘 void relationShip(); //员工关系 void performanceEvaluation(); //绩效管理 void procedureDesign(); //程序设计 void makeBugs(); //哈哈哈 } public class HrServiceImpl implements EmployService{ @Override public void sign() { System.out.println("打卡"); } @Override public void knockCode() { } @Override public void recruit() { System.out.println("招聘"); } @Override public void relationShip() { System.out.println("员工关系"); } @Override public void performanceEvaluation() { System.out.println("绩效考核"); } @Override public void procedureDesign() { } @Override public void makeBugs() { } } public class ProgrammerServiceImpl implements EmployService { @Override public void sign() { System.out.println("打卡"); } @Override public void knockCode() { System.out.println("敲代码"); } @Override public void recruit() { } @Override public void relationShip() { } @Override public void performanceEvaluation() { } @Override public void procedureDesign() { System.out.println("程序设计"); } @Override public void makeBugs() { System.out.println("造点bug"); } } public class ProgrammerClient { public void sign (EmployService employService) { employService.sign(); } public void knockCode(EmployService employService) { employService.knockCode(); } public void procedureDesign(EmployService employService) {
转载地址:http://rwisa.baihongyu.com/