Employee类 输入员工信息并打印
题目描述
构Employee类有四个成员变量:name、age、job和salary。
输入
名字、年龄、岗位和薪水
输出
雇员信息
样例输入
Smith
26
Engineer
1000
样例输出
Name:Smith
Age:26
Job:Engineer
Salary:1000.0
代码:
import java.util.Scanner;
class Employee{
private String name;
private int age;
private String job;
private float salary;
public Employee