原帖由 hjack 于 2005-6-30 18:48 发表
public interface IWoman throws SomeException{
public boolean isBeautiful();
public boolean hasHusband();
public int getTall();
public int getWeight();
public List thingCanD ...
回应接口,别人给翻译的一个女人信息实例化.
[Serializable]
public class GrilInfo
{
//所有的女人拥有的信息分为三个等级,1为优,2为中,3为劣
private int washing; //洗衣服
private int cooking; //煮饭
private int attending; //服侍男人
private int ***; //性感
private int Tall; //高度
private int Weight; //体重
private int face; //脸蛋
private int skin; //皮肤
private int stature; //身材
private int rich; //富有程度
private int character; //性格
public GrilInfo() { }
public GrilInfo(int washing, int cooking, int attending, int ***, int Tall, int Weight, int face, int skin, int stature, int rich, int character)
{
this.washing = washing;
this.cooking = cooking;
this.attending = attending;
this.*** = ***;
this.Tall = Tall;
this.Weight = Weight;
this.face = face;
this.skin = skin;
this.stature = stature;
this.rich = rich;
this.character = character;
}
public int Washing
{
get { return washing; }
set { washing = value; }
}
public int Cooking
{
get { return cooking; }
set { cooking = value; }
}
public int Attending
{
get { return attending; }
set { attending = value; }
}
public int ***
{
get { return ***; }
set { *** = value; }
}
public int Tall
{
get { return Tall; }
set { Tall = value; }
}
public int Weight
{
get { return Weight; }
set { Weight = value; }
}
public int Face
{
get { return face; }
set { face = value; }
}
public int Skin
{
get { return skin; }
set { skin = value; }
}
public int Stature
{
get { return stature; }
set { stature = value; }
}
public int Rich
{
get { return rich; }
set { rich = value; }
}
public int Character
{
get { return character; }
set { character = value; }
}
} |