Ребят, подскажите в чем проблема?
говорит что есть только 1 конструктор
package com.javarush.task.task05.task0520;
/*
Создать класс прямоугольник (Rectangle)
*/
public class Rectangle
{
private String copy; // Строчная переменная как новый параметр инициализации
private int top;
private int left;
private int width;
private int height;
public void initialize(int top, int left, int width, int height)
{
this.top = top;
this.left = left;
this.width = width;
this.height = height;
}
public void initialize(int top, int left)
{
this.top = top;
this.left = left;
this.width = 0;
this.height = 0;
}
public void initialize(int top, int left, int width)
{
this.top = top;
this.left = left;
this.width = width;
this.height = width;
}
public void initialize(String copy)
{
this.top = top;
this.left = left;
this.width = width;
this.height = height;
}
}
//напишите тут ваш код