回覆列表
  • 1 # 小紅的甜心

    把所有程式碼貼出來找一下。明天晚上給你答覆,今晚沒時間了。少了一個“}”類的打括號沒有。

    Syetem.out.println("hello"+rec); 這句中輸出的是類的屬性還是方法的返回值。 直接輸出類好像不行吧。

    public class Test

    {

    public static void main(String[] args)

    {

    Circle cir=new Circle(2);

    Rectangle rec=new Rectangle(2,3);

    System.out.println("this is cirlce");

    Syetem.out.println("hello"+cir);

    System.out.println("this is rectangle");

    Syetem.out.println("hello"+rec);

    }

    }

  • 中秋節和大豐收的關聯?
  • 雙層面膜的正確敷法?