大家近来帮帮忙!!!!(新手问题)

wu2kai 2008-03-02 08:36:05
All class are supported with default constructor, proper constructor, set, get and toString method.
1. create a class “Employee” having id ,name ,gender, and job.
2. create a subclass “Worker” having hours worked, wages per hour. Write getSalary method to salary.
3. create a subclass “SalesMan” having sales and commission percent . Write getCommission method to calculate salary.
4. create a client class “Roll” to have any employee by identifying using menu to print salary details(详细资料).
Input can be random(任意的, 随便的 ), but collect Worker and SalesMan details separately.
...全文
60 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
wu2kai 2008-03-02
  • 打赏
  • 举报
回复
只要意思:

1. 建立一个class “Employee” 包括 id , name ,gender,job,
2. 建立一个class “Worker” 包括 hours (工作时间), wages(每小时工资)
3. 建立一个class “ SalesMan” 包括 sales(销售额),commission percent(佣金百分率)
4. 建立一个class “ Roll” 连接以上class , 然后能输出详细信息
phyeas 2008-03-02
  • 打赏
  • 举报
回复
看不懂E文....不过顶一下.
wu2kai 2008-03-02
  • 打赏
  • 举报
回复
somebody help!
wu2kai 2008-03-02
  • 打赏
  • 举报
回复
Help!

62,623

社区成员

发帖
与我相关
我的任务
社区描述
Java 2 Standard Edition
社区管理员
  • Java SE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧