address.java

来自「SSH经典练习」· Java 代码 · 共 64 行

JAVA
64
字号
package com.ghy.data;

import java.io.Serializable;

public class Address implements Serializable {
	  private String street;
	  private String city;
	  private String province;
	  private String zipcode;
	  private Customer customer;

	  public Address(){}

	  public Address(String province,String city,String street,String zipcode,Customer customer)
	  {
	    this.province = province;
	    this.city = city;
	    this.street = street;
	    this.zipcode = zipcode;
	    this.customer = customer;

	  }

	  public String getStreet(){
	    return street;
	  }

	  public void setStreet(String street){
	    this.street=street;
	  }

	  public String getCity(){
	    return city;
	  }

	  public void setCity(String city){
	    this.city =city ;
	  }

	  public String getProvince(){
	    return province;
	  }

	  public void setProvince(String province){
	      this.province =province ;
	  }

	  public String getZipcode(){
	    return zipcode;
	  }

	  public void setZipcode(String zipcode){
	    this.zipcode =zipcode ;
	  }

	  public Customer getCustomer() {
	        return this.customer;
	  }
	  public void setCustomer(Customer customer) {
	        this.customer = customer;
	  }

	}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?