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
Field Summary |
private String |
fullName
Full name of customer (needed as a passenger). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
fullName
private String fullName
- Full name of customer (needed as a passenger).
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
.