这题因该论文题目怎么定做

请问一下这个题怎么做,一会就要交了,求助_java吧_百度贴吧
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&签到排名:今日本吧第个签到,本吧因你更精彩,明天继续来努力!
本吧签到人数:0成为超级会员,使用一键签到本月漏签0次!成为超级会员,赠送8张补签卡连续签到:天&&累计签到:天超级会员单次开通12个月以上,赠送连续签到卡3张
关注:527,062贴子:
请问一下这个题怎么做,一会就要交了,求助收藏
(The Person, Student, Employee, Faculty, and Staff classes) Design a class named Person and its two subclasses named Student and Employee. Make Faculty and Staff subclasses ofEmployee. A person has a name, address, phone number, and email address. A student has a class status (freshman, sophomore, junior, or senior). Define the status as a constant. An employee has an office, salary, and date hired. Define a class named MyDate that contains the fields year, month, and day. A faculty member has office hours and a rank. A staff member has a title. Override the toString method in each class to display the class name and the person’s name.lWrite a test program that creates a Person, Student, Employee, Faculty, and Staff, and invokes their toString() methods.l(Optional) Draw the UML diagram for the classes. Implement the classes.有哪位大神请写一下
java,就业薪资高,发展前景好,零基础入学,120天入门到精通.线上线下学习任你选,先就业后付款,学员尊享-名企入职通道.先就业后付款!
我写了这么多 下面实在不知道怎么写了public class person {private Sprivate Sprivate int phone_private String email_public String getName(){}public void setName(String name)
{this.name=}public String getAddress()
{}public void setAddress(String address)
{ this.address =}public int getPhone_number()
{ return phone_}public void setPhone_number(int phone_number)
{ this.phone_number = phone_}public String getEmail_address()
{ return email_}public void setEmail_address(String email_address)
{ this.email_address = email_
10块钱帮你搞定。。。。。。。。。。。。。
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */package com.test2;/** * test classes *
Administrator */public class TestTest {
public static void main(String[] args){
Person p = new Person(&person&);
Student s = new Student(&student&);
Employee e = new Employee(&employee&);
Faculty f = new Faculty(&faculty&);
Stuff st = new Stuff(&stuff&);
System.out.println(p);
System.out.println(s);
System.out.println(e);
System.out.println(f);
System.out.println(st);
}}class Person {
String phoneN
String emailA
public Person(String n) {
this.name =
public String toString() {
return &Person& + this.
}}class Student extends Person {
enum classStatus {
freshman, sophomore, junior, senior
public Student(String n) {
public String toString() {
return &Student& + this.
}}class Employee extends Person {
MyDate hiredD
public Employee(String n) {
public String toString() {
return &Employee& + this.
}}class MyDate {
public MyDate(String y, String m, String d) {
this.year =
this.month =
this.day =
}}class Faculty extends Student {
String officeH
public Faculty(String n) {
public String toString() {
return &Faculty& + this.
}}class Stuff extends Student {
public Stuff(String n) {
public String toString() {
return &Stuff& + this.
呵呵,代码不难,看题太难
登录百度帐号推荐应用
为兴趣而生,贴吧更懂你。或这题应该怎么做_百度知道这题怎么做?要过程!&
213傅旭东侏
94乘3=语数英三门课的总成绩=28296乘2=语数两门课的总成绩=192282-192=三门课减两门课=英语=90
为您推荐:
其他类似问题
90.这么简单
94*3-96*2=90
扫描下载二维码要做好这类题_百度文库
两大类热门资源免费畅读
续费一年阅读会员,立省24元!
要做好这类题
上传于||暂无简介
阅读已结束,如果下载本文需要使用1下载券
想免费下载本文?
定制HR最喜欢的简历
你可能喜欢

我要回帖

更多关于 主播应该怎么找话题 的文章

 

随机推荐