1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
stich3 [128]
4 years ago
9

Java Homework:(The Person, Student, Employee, Faculty, and Staff classes) Design a class named Person and its two subclasses nam

ed Student andEmployee. Make Faculty and Staff subclasses of Employee. 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.
class Person{
//A person has a name, address, phone number, and email address.
String name;
String address;
String phone;
String email;
}
class Student extends Person{
//A student has a class status
//(freshman,sophomore, junior, or senior).
//Define the status as a constant.
final int freshman =1;
final int sophomore =2;
final int junior=3;
final int senior=4;
int status=freshman;
}
class Employee extends Person{
//An employee has an office, salary, and date hired.
String office;
double salary;
java.util.Date dateHired;
}
class Faculty extends Employee{
//A faculty member has office hours and a rank.
String officeHours;
String rank;
}
class Staff extends Employee{
//A staff member has a title
String title;
}
public class ex112{
}
The outline is given above. Fill in between brackets to finish! Thank you :)
Computers and Technology
1 answer:
miss Akunina [59]4 years ago
8 0

Answer: Wait, so what is the question exactly..?

You might be interested in
8. Compare the advantages and disadvantages of using a smartphone rather than a laptop computer for creating a report.​
JulijaS [17]

Answer: the advantage of using a smartphone rather than a laptop computer is that you can talk to people across the world, call people, make texts, and get easy access to the internet. but the disadvantages are that a lot of people stay inside their house because of phones, not getting enough exercise.

Explanation:

3 0
3 years ago
In a submarine battle simulation, you know all the locations the enemy units can move to. Anticipating these moves, you call for
BaLLatris [955]

Answer:

perfect information

Explanation:

7 0
4 years ago
Read 2 more answers
Which of the following tactics can reduce the likelihood of injury?
vova2212 [387]

Answer:

the answer is the use of tools that reduce the need for repetitive action

Explanation:

this  is the answer because with the use of these tools there is less of a chance of injury because there is less time and opportunity for this to happen with the lack of need of repetition

4 0
4 years ago
Which access control principle specifies that no unnecessary access to data exists by regulating members so they can perform onl
sdas [7]
Least privilege is the data access principle that ensures to unnecessary access to data exists by regulation members so that can perform only minimum data manipulation necessary. The principle of least privilege or as called as POLP is the run-through of controlling access to the minimal level that will permit normal functioning. The norm of least privilege interprets to giving people the lowermost level of user right that they can have and still do their jobs. The principle is also functional to things other than people as well as programs and processes. It is created in the US department of defense in the 1970’s and aimed to limit the potential damage of any security breach either accidental or malicious. 
5 0
3 years ago
How many people fell for the brainly thing where you thought you had to sign up for a free trial just to see an answer lol. i li
Vitek1552 [10]

Answer:

Lol same

Explanation:

6 0
3 years ago
Other questions:
  • According to the chart, which degree would you have to earn in order to make the most amount of money? A bar graph titled Averag
    13·2 answers
  • Smoking is a REALLY good example of a choice that can have negative effects on the smoker's health, AND the well-being of others
    9·1 answer
  • Where does communication take place?
    12·1 answer
  • Similarities between drawing toolbar and editing toolbar​
    12·2 answers
  • What is c also write it's features
    8·2 answers
  • C++ Problem: In the bin packing problem, items of different weights (or sizes) must be packed into a finite number of bins each
    11·1 answer
  • The rate of flow is called
    11·1 answer
  • Write a program that prompts the user to enter a positive integer and displays all its smallest factors in decreasing order.
    14·1 answer
  • Each generation is set apart from the previous generation because of an innovation.
    6·1 answer
  • Compare and contrast sources and types of credit, including costs and benefits of installment
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!