package com; public abstract class CompanyMain { public static void main(String[] args) { // TODO Auto-generated method stub Company a =new Company(); ColaEmaployee[] c =new ColaEmaployee[3]; c[0]=new HourlyEmployee("一",1,15,180); c[1]=new SalariedEmployee("二",2,5000); c[2]=new SalesEmployee("张三",3,4500,0.12); a.Shuchu(c[0], 9); a.Shuchu(c[1], 2); a.Shuchu(c[2], 8); } }
by: 发表于:2018-06-13 11:32:44 顶(0) | 踩(0) 回复
回复评论