Prentice Hall and Sun Microsystems. Personal use only; do not redistribute.
15.2 Example: An On Line Travel Agent
367
Listing 15.5 TravelCustomer.java (continued)
  public String getEmailAddress() {
    return(emailAddress);
  }
  public void setEmailAddress(String emailAddress) {
    this.emailAddress = emailAddress;
  }
  public String getPassword() {
    return(password);
  }
  public void setPassword(String password) {
    this.password = password;
  }
  
  public String getFirstName() {
    return(firstName);
  }
  public void setFirstName(String firstName) {
    this.firstName = firstName;
  }
  public String getLastName() {
    return(lastName);
  }
  public void setLastName(String lastName) {
    this.lastName = lastName;
  }
  public String getFullName() {
    return(getFirstName() + " " + getLastName());
  }
  public String getCreditCardName() {
    return(creditCardName);
  }
  public void setCreditCardName(String creditCardName) {
    this.creditCardName = creditCardName;
  }
  public String getCreditCardNumber() {
    return(creditCardNumber);
  }
Second edition of this book: www.coreservlets.com; Sequel: www.moreservlets.com.
Servlet and JSP training courses by book's author: courses.coreservlets.com.






footer




 

 

 

 

 Home | About Us | Network | Services | Support | FAQ | Control Panel | Order Online | Sitemap | Contact

jsp web hosting

 

Our partners: PHP: Hypertext Preprocessor Best Web Hosting Java Web Hosting Jsp Web Hosting Cheapest Web Hosting

Visionwebhosting.net Business web hosting division of Web Design Plus. All rights reserved