airline
Class Customer
java.lang.Object
airline.User
airline.Customer
- All Implemented Interfaces:
- Serializable
public class Customer
- extends User
Represents a User who is a customer of the airline
(i.e., one who can make and purchase reservations).
- Author:
- Michael Goldwasser
- See Also:
- Serialized Form
Customer
public Customer(String fullName,
String userID,
String pwd)
- Instantiates a new customer.
- Parameters:
fullName - The name of this customeruserID - A unique user ID for use when logging into the systempwd - The password for use when logging into the system
getFullName
public String getFullName()
- Returns the full name of this customer.
- Returns:
String
getSession
public UserSession getSession(Connection connect)
- Overrides the factory function
User.getSession in
order to provide an appropriate CustomerSession.
- Specified by:
getSession in class User
- Parameters:
connect - The user-inteface Connection.
- Returns:
- A new
CustomerSession.