/**
* Excercise 8.4
* author Alex Rudniy
*/
package hash;

public class Address  {
  
  //constructors
  public Address() {
    street = "";
    city = "";
    state = "";
    country = "";
    zipCode = 0;
  }

  public Address(String newStreet, String newCity, String newState, String newCountry, int newZipCode) {
    street = newStreet;
    city = newCity;
    state = newState;
    country = newCountry;
    zipCode = newZipCode;
  }


  //accessors
  public String getStreet() {
    return street;
  }

  public String getCity() {
    return city;
  }

  public String getState() {
    return state;
  }

  public String getCountry(){
  return country;
  }
  
  public int getZipCode(){
  return zipCode;
  }
  
  //mutators
  public void setStreet(String newStreet) {
    street = newStreet;
  }

  public void setCity(String newCity) {
    city = newCity;
  }

  public void setState(String newState) {
    state = newState;
  }

  public void setCountry(String newCountry){
    country = newCountry;
  }
  
  public void setZipCode(int newZipCode){
    zipCode = newZipCode;
  }

  //fields
  private String street; 
  private String city;
  private String state;
  private String country;
  private int zipCode;
}