Advertisement
Guest User

Untitled

a guest
Dec 11th, 2019
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. package Coursework2;
  2.  
  3. public class Seats {
  4.  
  5. private String seatNum;
  6. private String seatClass;
  7. private boolean isWindow;
  8. private boolean isAisle;
  9. private boolean isTable;
  10. private double seatPrice;
  11. private String email;
  12.  
  13. public Seats(String seatNum, String seatClass, boolean isWindow, boolean isAisle, boolean isTable, double seatPrice,
  14. String eMail) {
  15. this.seatNum = seatNum;
  16. this.seatClass = seatClass;
  17. this.isWindow = isWindow;
  18. this.isAisle = isAisle;
  19. this.isTable = isTable;
  20. this.seatPrice = seatPrice;
  21. this.email = eMail;
  22. }
  23.  
  24. public String toString() {
  25. String result;
  26. result = "Seat: " + seatNum + " Class: " + seatClass + " Window: " + isWindow + " Aisle: " + isAisle
  27. + " Table: " + isTable + " Price: " + seatPrice + " Email: " + email;
  28. return result;
  29. }
  30.  
  31. public String getemail() {
  32. return email;
  33. }
  34.  
  35. public void setemail(String email) {
  36.  
  37. }
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement