Point類的構造函數

import java.util.*; class Point{ int a; int b; Point() { a=0; b=0; } Point(int a,int b) { this.a=a; this.b=b; } public void showPoint() { System.out.println("("+a+","+b+")"); } } pub
相關文章
相關標籤/搜索