Question: Java Assignment Create class Seat that contains the following class members: fields: firstName, lastName, amountPaid. Methods: Seat() - class constructor reserve() - save the name
Java Assignment
Create class Seat that contains the following class members:
fields: firstName, lastName, amountPaid.
Methods:
Seat() - class constructor
reserve() - save the name and the amount paid for the seat
makeEmpty() - set name to empty string and amount paid to 0
isEmpty() - check if the seat is empty
print() - print the name and amount paid for the seat
getFirstName() - return first name
getLastName() - return last name
getAmountPaid() - return the amount paid for the seat
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
