Employee.java 647 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. package J20250716.demo02_extends;
  2. /**
  3. * @author WanJl
  4. * @version 1.0
  5. * @title Employee
  6. * @description 员工类 父类
  7. * @create 2025/7/16
  8. */
  9. public class Employee {
  10. private String id;
  11. private String name;
  12. private String job;
  13. public void work(){}
  14. public String getId() {
  15. return id;
  16. }
  17. public void setId(String id) {
  18. this.id = id;
  19. }
  20. public String getName() {
  21. return name;
  22. }
  23. public void setName(String name) {
  24. this.name = name;
  25. }
  26. public String getJob() {
  27. return job;
  28. }
  29. public void setJob(String job) {
  30. this.job = job;
  31. }
  32. }