Can someone please help me..
I'm stuck creating a copy of another rectangle passed as an argument :(
package com.codegym.task.task05.task0513;
/*
Let's put together a rectangle
*/
public class Rectangle {
public int left;
public int top;
public int height;
public int width;
public void initialize(int left, int top, int height, int width){
this.left = left;
this.top = top;
this.height = height;
this.width = width;
}
public void initialize(int left, int top){
this.left = left;
this.top = top;
}
public void initialize(int left, int top, int height){
this.left = left;
this.top = top;
}
public void initialize(Rectangle(int left, int top, int height, int width)){
this.left = left;
this.top = top;
this.height = height;
this.width = width;
}
public static void main(String[] args) {
}
}