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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!