Advertisement
Guest User

Guest.java + Room.java

a guest
May 11th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.06 KB | None | 0 0
  1. public class Guest {
  2. private String username;
  3. private String password;
  4. private String firstName;
  5. private String lastName;
  6. private String prefix;
  7. private double balance;
  8.  
  9.  
  10. public String getUsername() {
  11. return username;
  12. }
  13.  
  14.  
  15. public void setUsername(String username) {
  16. this.username = username;
  17. }
  18.  
  19.  
  20. public String getPassword() {
  21. return password;
  22. }
  23.  
  24.  
  25. public void setPassword(String password) {
  26. this.password = password;
  27. }
  28.  
  29.  
  30. public String getFirstName() {
  31. return firstName;
  32. }
  33.  
  34.  
  35. public void setFirstName(String firstName) {
  36. this.firstName = firstName;
  37. }
  38.  
  39.  
  40. public String getLastName() {
  41. return lastName;
  42. }
  43.  
  44.  
  45. public void setLastName(String lastName) {
  46. this.lastName = lastName;
  47. }
  48.  
  49.  
  50. public String getPrefix() {
  51. return prefix;
  52. }
  53.  
  54.  
  55. public void setPrefix(String prefix) {
  56. this.prefix = prefix;
  57. }
  58.  
  59.  
  60. public double getBalance() {
  61. return balance;
  62. }
  63.  
  64.  
  65. public void setBalance(double balance) {
  66. this.balance = balance;
  67. }
  68.  
  69.  
  70. }
  71.  
  72. public class Room {
  73. private int maxAllowed;
  74. private int numberOfRooms;
  75. private String viewType;
  76. private double price;
  77.  
  78.  
  79.  
  80. public int getMaxAllowed() {
  81. return maxAllowed;
  82. }
  83.  
  84.  
  85. public void setMaxAllowed(int maxAllowed) {
  86. this.maxAllowed = maxAllowed;
  87. }
  88.  
  89.  
  90. public int getNumberOfRooms() {
  91. return numberOfRooms;
  92. }
  93.  
  94.  
  95. public void setNumberOfRooms(int numberOfRooms) {
  96. this.numberOfRooms = numberOfRooms;
  97. }
  98.  
  99.  
  100. public String getViewType() {
  101. return viewType;
  102. }
  103.  
  104.  
  105. public void setViewType(String viewType) {
  106. this.viewType = viewType;
  107. }
  108.  
  109.  
  110. public double getPrice() {
  111. return price;
  112. }
  113.  
  114.  
  115. public void setPrice(double price) {
  116. this.price = price;
  117. }
  118.  
  119.  
  120. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement