📄 employee.java
字号:
package sequentialProcessing;
import java.io.*;
/** An employee with a name, number, hourly wage and classification. */
public class Employee implements Serializable
{
/** The name of the employee. */
public String name;
/** The employee number. */
public int number;
/** The hourly pay rate for the employee. */
public float rate;
/** The classification of the employee. */
public String classification;
/** Construct a new employee.
Analysis: Time = O(1) */
public Employee(String newName, int newNumber, float newRate, String newClassification)
{
name = newName;
number = newNumber;
rate = newRate;
classification = newClassification;
}
/**String representation of the meployee.
Analysis: Time = O(1) */
public String toString()
{
return name + " " + number + " " + rate + " " + classification;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -