package com.example.userdata;

public class UserData {
	//定义私有属性
	private String userName;
	private String userPassword;
	private int userId;
	//构造函数的重载
	public UserData(String userName,String userPassword){
		super();
		this.userName = userName;
		this.userPassword = userPassword;
	}
	public UserData(String userName,String userPassword,int userId){
		super();
		this.userName = userName;
		this.userPassword = userPassword;
		this.userId = userId;
	}
	//用户名
	public String getUserName(){
		return userName;
	}
	public void setUserName(String userName){
		this.userName = userName;
	}
	//用户密码
	public String getUserPassword(){
		return userPassword;
	}
	public void setUserPassword(String password){
		this.userPassword = password;
	}
	//用户id
	public int getUserId(){
		return userId;
	}
	public void setUserId(int userId){
		this.userId = userId;
	}
}