Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package Coursework2;
- public class Seats {
- private String seatNum;
- private String seatClass;
- private boolean isWindow;
- private boolean isAisle;
- private boolean isTable;
- private double seatPrice;
- private String email;
- public Seats(String seatNum, String seatClass, boolean isWindow, boolean isAisle, boolean isTable, double seatPrice,
- String eMail) {
- this.seatNum = seatNum;
- this.seatClass = seatClass;
- this.isWindow = isWindow;
- this.isAisle = isAisle;
- this.isTable = isTable;
- this.seatPrice = seatPrice;
- this.email = eMail;
- }
- public String toString() {
- String result;
- result = "Seat: " + seatNum + " Class: " + seatClass + " Window: " + isWindow + " Aisle: " + isAisle
- + " Table: " + isTable + " Price: " + seatPrice + " Email: " + email;
- return result;
- }
- public String getemail() {
- return email;
- }
- public void setemail(String email) {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement