正在加载图片...
Java实例-定义类 class Point{ private int x,y; public void setpoint(int a,int b){ x=a; y=b; public int getx(){return x; public int gety(){return y; public String tostring() {return"["+x+","+y+"]";} Java实例—— 定义类 class Point{ private int x,y; public void setPoint(int a,int b){ x=a; y=b; } public int getX() { return x; } public int getY() { return y; } public String toString() { return "["+x+","+y+"]"; } }
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有