infobean.java

来自「基于java的医院门诊管理系统」· Java 代码 · 共 57 行

JAVA
57
字号
package crqs.infobeans;

import java.io.Serializable;

public class InfoBean implements Serializable {
	protected String UserName;	//登陆名
	protected String Password;	//密码
	protected String Mailbox;	//电子邮箱
	protected String Phone;	//电话号码
	protected int Age;		//年龄
	protected char Gender;	//性别

    public InfoBean() {
    }
    
    public void setUserName(String Name){
    	this.UserName = Name;
    }
    public String getUserName(){
    	return this.UserName;
    }
    
    public void setPassword(String password){
    	this.Password = password;
    }
    public String getPassword(){
    	return this.Password;
    }
    
    public void setMailBox(String mailbox){
    	this.Mailbox = mailbox;
    }
    public String getMailBox(){
    	return this.Mailbox;
    }
    
    public void setPhone(String phone){
    	this.Phone = phone;
    }
    public String getPhone(){
    	return this.Phone;
    }
    
    public void setAge(int age){
    	this.Age = age;
    }
    public int getAge(){
    	return this.Age;
    }
    
    public void setGender(char gender){
    	this.Gender = gender;
    }
    public char getGender(){
    	return this.Gender;
    }
}

⌨️ 快捷键说明

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