employee.java
来自「During your career as a Software Designe」· Java 代码 · 共 33 行
JAVA
33 行
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 + =
减小字号Ctrl + -
显示快捷键?