打字猴:1.70046801e+09
1700468010
1700468011 public class Branch implements IBranch{
1700468012
1700468013 //领导也是人,也有名字
1700468014
1700468015 private String name=””;
1700468016
1700468017 //领导和领导不同,也是职位区别
1700468018
1700468019 private String position=””;
1700468020
1700468021 //领导也是拿薪水的
1700468022
1700468023 private int salary=0;
1700468024
1700468025 //领导下边有那些下级领导和小兵
1700468026
1700468027 ArrayList<ICorp>subordinateList=new ArrayList<ICorp>();
1700468028
1700468029 //通过构造函数传递领导的信息
1700468030
1700468031 public Branch(String name,String position,int salary){
1700468032
1700468033 this.name=name;
1700468034
1700468035 this.position=position;
1700468036
1700468037 this.salary=salary;
1700468038
1700468039 }
1700468040
1700468041 //增加一个下属,可能是小头目,也可能是个小兵
1700468042
1700468043 public void addSubordinate(ICorp corp){
1700468044
1700468045 this.subordinateList.add(corp);
1700468046
1700468047 }
1700468048
1700468049 //我有哪些下属
1700468050
1700468051 public ArrayList<ICorp>getSubordinate(){
1700468052
1700468053 return this.subordinateList;
1700468054
1700468055 }
1700468056
1700468057 //领导也是人,他也有信息
1700468058
1700468059 public String getInfo(){
[ 上一页 ]  [ :1.70046801e+09 ]  [ 下一页 ]