FileDocCategorySizeDatePackage
Ticket.javaAPI DocExample1025Sat Mar 06 11:21:44 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 accomidations 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;