锘??xml version="1.0" encoding="utf-8" standalone="yes"?>www.亚洲视频,在线欧美成人,亚洲国产日韩在线一区模特http://www.aygfsteel.com/331929879/zh-cnSun, 18 May 2025 17:15:28 GMTSun, 18 May 2025 17:15:28 GMT60緇ф壙綾?/title><link>http://www.aygfsteel.com/331929879/archive/2007/10/16/153266.html</link><dc:creator>灝忛</dc:creator><author>灝忛</author><pubDate>Tue, 16 Oct 2007 06:47:00 GMT</pubDate><guid>http://www.aygfsteel.com/331929879/archive/2007/10/16/153266.html</guid><wfw:comment>http://www.aygfsteel.com/331929879/comments/153266.html</wfw:comment><comments>http://www.aygfsteel.com/331929879/archive/2007/10/16/153266.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/331929879/comments/commentRss/153266.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/331929879/services/trackbacks/153266.html</trackback:ping><description><![CDATA[<br /> class Father<br /> {<br />  int age;<br />  String name;<br />  void eat()<br />  {<br />   System.out.println("鍚冮錛?);<br />  }<br /> }<br /> class Son extends Father<br /> {<br />  int height;<br />  void eat()<br />  {<br />   super.eat();<br />   System.out.println("鍠濋厭");<br />  }<br /> }<br /> class Ex<br /> {<br />  public static void main(String args[])<br />  {<br />   Son p=new Son();<br />   Father p1=new Son();<br />   p1.eat();<br />   p.eat();<br />  }<br /> } <img src ="http://www.aygfsteel.com/331929879/aggbug/153266.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/331929879/" target="_blank">灝忛</a> 2007-10-16 14:47 <a href="http://www.aygfsteel.com/331929879/archive/2007/10/16/153266.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>澶嶆暟榪愮畻http://www.aygfsteel.com/331929879/archive/2007/10/12/152214.html灝忛灝忛Fri, 12 Oct 2007 01:13:00 GMThttp://www.aygfsteel.com/331929879/archive/2007/10/12/152214.htmlhttp://www.aygfsteel.com/331929879/comments/152214.htmlhttp://www.aygfsteel.com/331929879/archive/2007/10/12/152214.html#Feedback0http://www.aygfsteel.com/331929879/comments/commentRss/152214.htmlhttp://www.aygfsteel.com/331929879/services/trackbacks/152214.htmlclass Complex{
 double real;
    double image;

    public Complex add(Complex another){
  Complex res = new Complex();
  res.real = real + another.real;
  res.image = image + another.image;
  return res;
    }
    
 public Complex minus(Complex another){// 褰撳墠澶嶆暟涓庢柟娉曞弬鏁癮nother鐩稿噺錛?br />   Complex r = new Complex();
  r.real = real - another.real;
  r.image = image - another.image;
  return r;
 }
 
 public Complex multi(Complex another){ //褰撳墠澶嶆暟涓庢柟娉曞弬鏁癮nother鐩鎬箻錛堟敞鎰忓鏁扮浉涔橈級錛?nbsp;
  Complex r = new Complex();
  r.real = real * another.real - image * another.image;
  r.image = real * another.image + image * another.real ;
  return r;
 }
 
 public void disp(){
  if( image == 0 ){
   System.out.print(real);
  }
  else
  {
   System.out.print(real + " + " + image + "i");
  }
 }
 
 public Complex(double real , double image){
  this.real = real;
  this.image = image ;
 }
 public Complex(){
  this(0 , 0);
 }
 
 public static void main (String[] args) {
  Complex c1 = new Complex(2 , 3);
  Complex c2 = new Complex(5 , 4);
  Complex res;
  
  c1.disp();
  System.out.print("  +   ");
  c2.disp();
  System.out.print("  =   ");
  c1.add(c2).disp();
  System.out.println();
  
  c1.disp();
  System.out.print("  -   ");
  c2.disp();
  System.out.print("  =   ");
  c1.minus(c2).disp();
  System.out.println();
  
  
  c1.disp();
  System.out.print("  *   ");
  c2.disp();
  System.out.print("  =   ");
  c1.multi(c2).disp();
  System.out.println();
    }
}



灝忛 2007-10-12 09:13 鍙戣〃璇勮
]]>
涓涓戶鎵跨被http://www.aygfsteel.com/331929879/archive/2007/10/11/152046.html灝忛灝忛Thu, 11 Oct 2007 07:09:00 GMThttp://www.aygfsteel.com/331929879/archive/2007/10/11/152046.htmlhttp://www.aygfsteel.com/331929879/comments/152046.htmlhttp://www.aygfsteel.com/331929879/archive/2007/10/11/152046.html#Feedback0http://www.aygfsteel.com/331929879/comments/commentRss/152046.htmlhttp://www.aygfsteel.com/331929879/services/trackbacks/152046.htmlclass Circle
{
 int r;
 static double PI=3.14;
 public int GetR(int r)
 {
  this.r=r;
  return r;
 }
 public void GetZ()
 {
  System.out.println(2*PI*r);
 }
 public void GetArea()
 {
  System.out.println(PI*r*r);
 }
}
class Cylinder extends Circle
{
 int height;
 public void GetCylinder(int r,int height)
 {
  this.r=r;
  this.height=height;
 }
 public void GetZ()
 {
  System.out.println(PI*r*r*height);
 }
 public void GetArea()
 {
  System.out.println(2*PI*r*r+2*PI*height);
 }
}
class Ex
{
 public static void main(String args[])
 {
  Circle p=new Circle();
  System.out.println( p.GetR(2));
  p.GetZ();
  p.GetArea();
  Cylinder p1=new Cylinder();
  p1.GetZ();
 }
}



灝忛 2007-10-11 15:09 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 景泰县| 拉萨市| 河池市| 沁源县| 全南县| 远安县| 马关县| 雅安市| 竹北市| 古蔺县| 塔城市| 乐至县| 金沙县| 龙游县| 灵武市| 天水市| 胶南市| 高雄县| 嘉善县| 岫岩| 永定县| 类乌齐县| 遂昌县| 乃东县| 伽师县| 鄂托克前旗| 咸阳市| 肃宁县| 黄浦区| 昌吉市| 尚义县| 南靖县| 灌阳县| 宜宾县| 蓬溪县| 罗山县| 阳谷县| 昂仁县| 鲁山县| 双辽市| 神木县|