全文预览

Java实验二实验报告

上传者:读书之乐 |  格式:doc  |  页数:11 |  大小:328KB

文档介绍
phone,String socialSN, double payRate) Р {Р super(No, name, address, phone, socialSN, payRate);Р }Р @OverrideР public double pay() Р {Р return 0.00;Р }Р public String toString()Р {Р return this.No+" "+this.name+" "+this.address+" "+this.phone+" "+this.socialSN+this.payRate;Р }Р }Р?Рclass Staff Р?{Р private StaffMember[] members = new StaffMember[6]; Р public Staff() Р {Р StaffMember manager = new Manager(1, "姓名:Sam", "地址:123 Main Line",Р "电话:555-0469", "社会安全号:123-45-6789", 2923.07, 500.00);Р StaffMember employee1 = new Employee(2, "姓名:Peter", "地址:456 Off Line",Р "电话:555-0101", "社会安全号:987-65-4321", 1246.15);Р StaffMember employee2 = new Employee(3, "姓名:Mary", "地址:789 Off Rocker","电话:555-0690", "社会安全号:010-20-3040", 1169.23);Р StaffMember hourly = new Hourly(4, "姓名:Cliff", "地址:678 Fifth Ave",

收藏

分享

举报
下载此文档