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 thingCanDo();
    public int howDoSheLoveU();
}
19楼,implements 这个接口,要什么样的女人都可以啦。
haha

wool王 发表于 2005-7-1 02:09

楼上你的心水Girl是什么?实现下这个接口啊...

hiphen1 发表于 2005-7-3 01:04

哈哈,有趣,

zayfan你继续

iptton 发表于 2006-7-25 02:29

翻下旧帖再睡觉……

iptton 发表于 2006-7-25 18:04

原帖由 hjack 于 2005-6-29 14:18 发表
确实,在很多同学眼里,我是一个异类,是不是编程的都会这样被认为了???

唉!
唉!
唉……

大鱼 发表于 2006-7-26 11:56

原帖由 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 ...

回应接口,别人给翻译的一个女人信息实例化.


    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; }
      }


    }

sasadong 发表于 2006-7-27 00:17

不错。
我写代码,通常在看到其运行速度比别人得算法快时达到高潮。

可惜,现在被钱蒙了眼睛。没钱没女人啊,更别说是pl女人。

另:写程序和追女孩子没有任何临界区存在,我也拍过很多次拖,说句粗俗的,也上过很多学校的女,但,pl的就没,那是需要m或者很多时间或者很多尊严砸出来的。

可乐仔 发表于 2006-7-27 00:44

阿 hjack犀利啊 ....

wool王 发表于 2006-7-27 08:31

原帖由 大鱼 于 2006/7/26 11:56 发表


回应接口,别人给翻译的一个女人信息实例化.


    public class GrilInfo
    {

      //所有的女人拥有的信息分为三个等级,1为优,2为中,3为劣
      private int washing; //洗衣服
       ...

c sharp 的setter/getter就是比java的简洁...我喜欢...
页: 1 [2]
查看完整版本: 人们崇拜我们这些编程的异类