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