⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 employee.java

📁 During your career as a Software Designer/Programmer you will probably encounter the need to use Obj
💻 JAVA
字号:
package dev.easyref.data;/** * <p>Title: Easy Reflection</p> * <p>Description: This project demonstrate the easier usage of Reflection</p> * <p>Copyright: Copyright (c) 2003</p> * <p>Company: N/A</p> * @author Doron Barak * @version 1.0 */public class Employee {	// These are the data-members, notice that we can never access them externally..	private int age;	private float salary;	private String firstName;	private String lastName;	public Employee(String firstName, String lastName, int age, float salary) {		this.age = age;		this.salary = salary;		this.firstName = firstName;		this.lastName = lastName;	}	public void updateSalary(float increase) {		salary += increase;	}	public String toString() {		return "<Employee Name: [" + firstName + ", " + lastName + "], Age: [" + age + "], Salary: [" + salary + "]>";	}}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -