文件名称:inherit
介绍说明--下载内容均来自于网络,请自行研究使用
实现一个名为Person的类和它的子类Employee,Employee有两个子类Faculty和Staff。
具体要求如下:
(1)Person类中的属性有:姓名name(String类型),地址address(String类型),电话号码telphone(String类型)和电子邮件地址email(String类型);
(2)Employee类中的属性有:办公室office(String类型),工资wage(double类型),受雇日期hiredate(String类型);
(3)Faculty类中的属性有:学位degree(String类型),级别level(String类型);
(4)Staff类中的属性有:职务称号duty(String类型);
-Implement a class called Person and its subclasses Employee, Employee has two subclasses Faculty and Staff. Specific requirements are as follows: (1) Person class attributes are: name name (String type), address address (String type), phone number telphone (String type) and e-mail address email (String type) (2) Employee Class the properties are: Office of the office (String type), wages wage (double type), date of employment hiredate (String type) (3) Faculty class attributes are: degree degree (String type), grade level (String type ) (4) Staff class attributes: job title duty (String type)
具体要求如下:
(1)Person类中的属性有:姓名name(String类型),地址address(String类型),电话号码telphone(String类型)和电子邮件地址email(String类型);
(2)Employee类中的属性有:办公室office(String类型),工资wage(double类型),受雇日期hiredate(String类型);
(3)Faculty类中的属性有:学位degree(String类型),级别level(String类型);
(4)Staff类中的属性有:职务称号duty(String类型);
-Implement a class called Person and its subclasses Employee, Employee has two subclasses Faculty and Staff. Specific requirements are as follows: (1) Person class attributes are: name name (String type), address address (String type), phone number telphone (String type) and e-mail address email (String type) (2) Employee Class the properties are: Office of the office (String type), wages wage (double type), date of employment hiredate (String type) (3) Faculty class attributes are: degree degree (String type), grade level (String type ) (4) Staff class attributes: job title duty (String type)
(系统自动生成,下载前可以参看下载内容)
下载文件列表
inherit.txt