Seat - } public Double getPrice(){ return pricePerTicket; }...

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

This note was uploaded on 05/01/2008 for the course ECE 172 taught by Professor Olabe during the Spring '08 term at Christian Brothers.

Ask a homework question - tutors are online