如果我要建立一個class關於circle, for example:
public class Circle {
public double x, y; //the circle's centre
public double y; //radius
public double circumference()..................
另外想建立一個object, for example:
Circle c = new Circle();
c.x = 4.0;
c.y = 4.0;
c.r = 1.0;
請問這2項東西需要寫在一起嗎?要怎樣編排??請用中文解釋