FileDocCategorySizeDatePackage
Ticket.javaAPI DocExample1097Tue Dec 14 16:26:22 GMT 1999com.titan.travelagent

Ticket

public class Ticket extends Object implements Serializable

Fields Summary
public int
cruiseID
public int
cabinID
public double
price
public String
description
Constructors Summary
public Ticket(com.titan.customer.Customer customer, com.titan.cruise.Cruise cruise, com.titan.cabin.Cabin cabin, double price)

        
       description = customer.getFirstName()+" "+customer.getMiddleName()+ 
           " " + customer.getLastName() + 
           " has been booked for the " + cruise.getName().trim() + 
           " cruise on ship " + cruise.getShipID() + ".\n" +  
           " Your accommodations include " + cabin.getName().trim() + 
           " a " + cabin.getBedCount() + 
           " bed cabin on deck level " + cabin.getDeckLevel() + 
           ".\n Total charge = " + price;
    
Methods Summary
public java.lang.StringtoString()

        return description;