Для наглядности я добавил 3 объекта типа Circle в метод main. Но не с ними, не без них валидатор не пропускает, хотя все работает и IDEA видит и валидирует все вводимые параметры.
package com.javarush.task.task05.task0519;
/*
Ходим по кругу
*/
public class Circle {
//напишите тут ваш код
private int centerX ;
private int centerY ;
private int radius ;
private int width ;
private int color ;
public Circle (int centerY, int centerX, int radius){
this.centerX = centerX;
this.centerY = centerY;
this.radius = radius;
}
public Circle (int centerY, int centerX, int radius, int width){
this.centerX = centerX;
this.centerY = centerY;
this.radius = radius;
this.width = width;
}
public Circle (int centerY, int centerX, int radius, int width, int color){
this.centerX = centerX;
this.centerY = centerY;
this.radius = radius;
this.width = width;
this.color = color;
}
public static void main(String[] args) {
Circle oval = new Circle(1, 1,1,1,1);
Circle oval1 = new Circle(1, 1,1);
Circle oval2 = new Circle(1,1,1,1);
}
}