📄 abstractuser.java
字号:
//姓名, 性别, 生日, 地址, 身份证号码
package txl.student.user ;
/*
*抽象类,对用户接口提供默认实现
*/
public class AbstractUser {
protected String name = null; //姓名,真实姓名
protected String birthday = null; //生日
protected String address = null; //地址
protected String cardID = null; //身份证号码
protected String sex = null ; //性别
//protected String userName = null ; //用户名
/*
public void setName(String name)
{
this.name = name ;
}
public String getName()
{
return this.name ;
}
public void setBirthday(String birthday)
{
this.birthday = birthday ;
}
public String getBirthday()
{
return this.birthday ;
}
public void setAddress(String address)
{
this.address = address ;
}
public String getAddress()
{
return this.address ;
}
public void setCardID(String cardID)
{
this.cardID = cardID ;
}
public String getCardID()
{
return this.cardID ;
}
public void setSex(String sex)
{
this.sex = sex ;
}
public String getSex()
{
return this.sex ;
}
public String toString()
{
return "姓名:" + this.getName() ;
}
*/
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -