Advertisement
Guest User

Untitled

a guest
May 20th, 2019
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. package Bean;
  2.  
  3. public class Travail {
  4.  
  5. private int nuempl;
  6. private int nuproj;
  7. private int duree;
  8.  
  9. public Travail(int nuempl, int nuproj, int duree) {
  10. this.nuempl = nuempl;
  11. this.nuproj = nuproj;
  12. this.duree = duree;
  13. }
  14.  
  15. public int getNuempl() {
  16. return nuempl;
  17. }
  18.  
  19. public void setNuempl(int nuempl) {
  20. this.nuempl = nuempl;
  21. }
  22.  
  23. public int getNuproj() {
  24. return nuproj;
  25. }
  26.  
  27. public void setNuproj(int nuproj) {
  28. this.nuproj = nuproj;
  29. }
  30.  
  31. public int getDuree() {
  32. return duree;
  33. }
  34.  
  35. public void setDuree(int duree) {
  36. this.duree = duree;
  37. }
  38.  
  39. @Override
  40. public String toString() {
  41. return "Travail [nuempl=" + nuempl + ", nuproj=" + nuproj + ", duree=" + duree + "]";
  42. }
  43.  
  44.  
  45.  
  46.  
  47. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement