public class Circle { public double x, y, r; // Ympyrän keskipiste ja säde // Konstruktorimetodi public Circle(double x, double y, double r) { this.x = x; this.y = y; this.r = r; } public double circumference() { return 2 * 3.14159 * r; } public double area() { return 3.14159 * r*r; } }