class Ball{ float x, y, r, m; // default constructor Ball() { } Ball(float x, float y, float r) { this.x = x; this.y = y; this.r = r; m = r*.1; } }