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