看板
[ java ]
討論串[問題] 物件的問題
共 3 篇文章
首頁
上一頁
1
下一頁
尾頁
內容預覽:
[43][43][43]. 你說得沒有錯, 但在原問者的情況,. 並不是 println 收到一個 Object的情況,. 而是. String concatenation 時, Object 的部份. 會 invoke 其 toString 再用其 return String. 作 concat.
(還有9個字)
內容預覽:
//修改物件的屬性. class MyPoint. {. protected double x;. protected double y;. MyPoint(). {. setX(0);. setY(0);. }. MyPoint(double x, double y). {. setX(x);.
(還有1541個字)
首頁
上一頁
1
下一頁
尾頁