看板
[ java ]
討論串[問題] extends inner class
共 3 篇文章
首頁
上一頁
1
下一頁
尾頁
內容預覽:
樓上說的, syntax 上是正確.. 但感覺上就像, 有人問我寫了一個 method (instance method). 沒法 call, 要怎辦, 然後回答說: 就 new MyObj().method() 就. 好了. 我之前有說過類似的東西: 一個 method (或這裡, inner c
(還有326個字)
內容預覽:
public class Circle {. class Point {. public int x = 5, y = 2;. public Point(int x, int y) {. this.x = x;. this.y = y;. }. public String toString() {.
(還有205個字)
首頁
上一頁
1
下一頁
尾頁