免费注册 登录
广州青年志愿者网--公益网络志愿者义工协会--志愿者义工招募、公益爱心项目平台,咨询电话:1986-001-1205【联合国会议通过:1986年12月5日是第一个国际志愿者日】(办公时间10:00-17:00) 返回首页

小瀛瀛的个人空间 http://i.zyz.cn/?40670 [收藏] [复制] [分享] [RSS]

日志

Java中不能运行的程序_Human Emotion

已有 214 次阅读2009-3-29 16:12 |

package Human;

public abstract class Other_things{
   public double Circumstance( ){
       return so_so;
       }
   public double Health( ){
       return imorptant;
       }
   public abstract double Wealth( );
}

public interface Emotion{
   public double Smile( );
   public double Tears( );
}

public class Happy extends Emotion implements Other_things{
   private double Feel_1;
   public Happy (double Circumstance, double Health, double Wealth, double Feel_1){
      super(Circumstance);
      super(Health);
      super(Wealth);
      this.Feel_1=Feel_1;
}
   public double Smile( ){
      double Cheerful;
      Cheerful=this.Feel_1+this.Circumstance( )+this.Health( )+this.Wealth( );
      return Cheerful;
}
   public double Tears( ){
      double Touch;
      Touch=Math.pow((this.Circumstance( )+this.Health( )), this.Feel_1)+this.Wealth;
      return Touch;
      }
}
public class Sad extends Emotion implements Other_things{
   private double Feel_2;
   public Sad (double Circumstance, double Health, double Wealth, double Feel_2){
       super(Circumstance);
       super(Health);
       super(Wealth);
       this.Feel_2=Feel_2;
}
   public double Smile( ){
       double Gloss;
       Gloss= this.Feel_2*this.Circumstance( )*this.Health( )*this.Wealth( );
       Return Gloss;
       }
   public double Tears( ){
      double Upset;
      Upset=this.feel+Math.sprt(this.Circumstance( )+this.Health( )+this.Wealth( ));
      return Upset;
      }
}
public class Complex extends Emotion implements Other_things{
   private double Feels;
   public Wrong(double Circumstance, double Health, double Wealth, double Feels){
       super(Circumstance);
       super(Health);
       super(Wealth);
       this.Feels=Feels;
}
   public double Smile( ){
       double Wrong;
       Gloss=”It’s so complex, the system is wrong! ”
       Return Gloss;
       }
   public double Tears( ){
      double Wrong;
      Gloss=”It’s so complex, the system is wrong! ”
      return Wrong;
      }
}
public class Main_Feeling{
public static void main(String[ ] args){
        Emotion a,b,c;
        a=new Happy(Maybe);
        b=new Sad(Maybe);
        c=new Complex(I_don’t_know);
        System.out.print(a.Smile()+a.Tears());
        System.out.print(b.Smile()+b.Tears());
        System.out.print(c.Smile()+c.Tears());
        }
}

发表评论 评论 (1 个评论)

回复 小瀛瀛 2009-3-29 16:14
自己写嘎....写得5好嘎话...........当无睇过拉~~~~~~
睇5明嘎....未学过Java嘎................都当无睇过拉拉拉拉拉拉拉~~~~~~~~

facelist doodle 涂鸦板

您需要登录后才可以评论 登录 | 免费注册

返回顶部