{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Seat - public Double getPrice return pricePerTicket public...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
public class Seat { private String name; private Double pricePerTicket; private int ticketsSold; public Seat(String ticketName) { name = ticketName; pricePerTicket =00.00; ticketsSold = 00000; } public void setName (String ticketName){ name = ticketName; } public String getName(){ return name;
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: } public Double getPrice(){ return pricePerTicket; } public int getSold(){ return ticketsSold; } public Double getSales(Double price, int sold){ return (price * sold); } public void setTicketInfo(int sold, Double price){ ticketsSold = sold; pricePerTicket = price; } }...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online