не получается создать копию прямоугольника, не проходит проверку
package com.javarush.task.task05.task0520;
/*
Создать класс прямоугольник (Rectangle)
*/
public class Rectangle {
int top, left, width, height;
public Rectangle(int top, int left, int width, int height) {
this.top = top;
this.left = left;
this.width = width;
this.height = height;
}
public Rectangle(int top, int left) {
this.top = top;
this.left = left;
this.width = 0;
this.height = 0;
}
public Rectangle(int top, int left, int width) {
this.top = top;
this.left = left;
this.width = height;
}
public static void main(String[] args) {
Rectangle rectangle = new Rectangle(5, 6);
}
}