class user{ private int id; private String name; public int getId() { return id; } public void setId(int id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } } //部门信息 class Department{ private int id; private String name; public int getId() { return id; } public void setId(int id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } } //创建员工的接口,插入和查询方法 interface Iuser{ void insert(user u); user Getuser(int id); } interface Idepartment{ void insert(Department D); Department Getdepartment(int id); } class Sqlserver implements Iuser{ @Override public void insert(user u) { // TODO Auto-generated method stub } @Override public user Getuser(int id) { // TODO Auto-generated method stub return null; } } class access implements Iuser{ @Override public void insert(user u) { // TODO Auto-generated method stub } @Override public use
第三次作业(2)
最新推荐文章于 2022-04-13 11:39:55 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)