"- create a copy of another rectangle passed as an argument" - This is what I don't understand here so please kindly help me This statement applies to 4th initialize method only. Thanks.
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(initialize(int left, int top, int height, int width)){
this.left = left;
this.top = top;
this.height = height;
this.weight = weight;
}
public static void main(String[] args) {
}
}