Advertisement
Guest User

Untitled

a guest
Jan 19th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. package model;
  2.  
  3. import java.io.Serializable;
  4.  
  5. public abstract class User implements Serializable{
  6. private int id;
  7. public static int k=0;
  8. private String username;
  9. private String password;
  10. protected Tipi tipi;
  11.  
  12. public User(String username, String password,Tipi type){
  13. this.username = username;
  14. this.password = password;
  15. tipi=type;
  16. k++;
  17. }
  18.  
  19. /**
  20. * @return the username
  21. */
  22. public String getUsername() {
  23. return username;
  24. }
  25.  
  26. /**
  27. * @param username the username to set
  28. */
  29. public void setUsername(String username) {
  30. this.username = username;
  31. }
  32.  
  33. /**
  34. * @return the password
  35. */
  36. public String getPassword() {
  37. return password;
  38. }
  39.  
  40. /**
  41. * @param password the password to set
  42. */
  43. public void setPassword(String password) {
  44. this.password = password;
  45. }
  46.  
  47. /**
  48. * @return the tipi
  49. */
  50. public Tipi getTipi() {
  51. return tipi;
  52. }
  53.  
  54. /**
  55. * @param tipi the tipi to set
  56. * @return
  57. * @return
  58. */
  59. public abstract void setTipi(Tipi tipi);
  60.  
  61.  
  62.  
  63. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement