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