⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 customer.java

📁 A bank system
💻 JAVA
字号:


import java.io.Serializable;

public class Customer implements Serializable{
	private static final long serialVersionUID = 1L;
	private int customerID; 
	private String firstName;
	private String lastName;
	private String birthDate;
	private String emailAddress;
	private String telephoneNumber;
	
	/**
	 * The constructor has a responsible to initial value for all essential data when the object is created
	 */
	public Customer(){
		this.customerID 		= 0;
		this.firstName			= "";
		this.lastName			= "";
		this.emailAddress		= "";
		this.telephoneNumber 	= "00000000";
	}
	
	/**
	 * The constructor has a responsible to initial value for all essential data when the object is created
	 * @param customerID		: cutomer number or customer id --> four digit number
	 * @param lastName			: Last name of customer	
	 * @param firstName			: First name of customer
	 * @param birthDate			: the date of birht of customer
	 * @param emailAddress		: Customer's e-mail address
	 * @param telephoneNumber	: Customer' telephone number including area code
	 */
	public Customer(int customerID,
					String lastName,
					String firstName, 
					String birthDate, 
					String emailAddress,
					//int telephoneNumber){
					String telephoneNumber){
		this.customerID 		= customerID;
		this.lastName			= lastName;
		this.firstName			= firstName;
		this.birthDate			= birthDate;
		this.emailAddress		= emailAddress;
		this.telephoneNumber 	= telephoneNumber;
	}

	public String getBirthDate() {
		return birthDate;
	}

	public void setBirthDate(String birthDate) {
		this.birthDate = birthDate;
	}

	public int getCustomerID() {
		return customerID;
	}

	public void setCustomerID(int customerID) {
		this.customerID = customerID;
	}

	public String getEmailAddress() {
		return emailAddress;
	}

	public void setEmailAddress(String emailAddress) {
		this.emailAddress = emailAddress;
	}

	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 getTelephoneNumber() {
		return telephoneNumber;
	}

	public void setTelephoneNumber(String telephoneNumber) {
		this.telephoneNumber = telephoneNumber;
	}
	
	
}

⌨️ 快捷键说明

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