I don't know whats wrong
edit: it looks better but it is still not correct
package com.codegym.task.task05.task0513;
/*
Let's put together a rectangle
*/
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 top, int left, int width) {
this.top = top;
this.left = left;
this.width = width;
height = width;
}
public void initialize(int top, int left, int width, int height) {
this.top = top;
this.left = left;
this.width = width;
this.height = height;
}
public static void main(String[] args) {
}
}