public class patient { privatestring name; 私有字符; 私有增量; 权限浮动; privatebooleanAllergies; publicvoidsetname(stringa ) ) {Name=a; }publicvoidsetsex(charb ) ) se .
public class patient {
私有字符串名称;
专用字符sex;
私有输入;
私有浮动高度;
私有布尔警报;
公共语音集名称(stringa ) )。
{Name=a; }
公共语音集(charb )。
{Sex=b; }
公共语音设置(intc ) )。
{Age=c; }
PublicvoidsetWeight(floatd ) ) ) ) )。
{Weight=d; }
公共置位规则(布尔) )。
{Allergies=e; }
公共字符串获取名称() {return Name; }
公共char get sex () {return Sex; }
公共获取页面() {return Age; }
publicfloatgetweight ((return weight ); }
public boolean getAllegies () {return Allergies; }
}
公共类分区
{