摘要: Cola公司的雇员分为以下若干类:(知识点:多态) [必做题]• 4.1 ColaEmployee :这是所有员工总的父类,属性:员工的姓名,员工的生日月份。方法:getSalary(int month) 根据参数月份来确定工资,如果该月员工过生日,则公司会额外奖励100 元。• 4.2 Salar 阅读全文
posted @ 2021-06-18 17:24 医不活 阅读(41) 评论(0) 推荐(0) 编辑
摘要: package homework; public class Test { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub Vehicle v = new 阅读全文
posted @ 2021-06-18 17:10 医不活 阅读(53) 评论(0) 推荐(0) 编辑