close
我用課外書的範例自己編寫的程式碼  執行與編譯都成功
這是有參數的建構子  5+6+9=20

public class j111203
{
    j111203(int p)
    {
System.out.print(5+p);
    }
    public static void main(String[] args)
    {
j111203 o=new j111203(6+9);
    }} 
 

執行結果

--------------------Configuration: --------------------
20
Process completed.  編譯成功 
arrow
arrow
    全站熱搜

    gtea0609 發表在 痞客邦 留言(0) 人氣()