Create a copy of another rectangle (it is passed in the parameters):
public class Rectangle { private int left, top, width, height; Rectangle p; public Rectangle(int left, int top, int width, int height) { this.left = left; this.top = top; this.width = width; this.height = height; } public Rectangle(Rectangle p) { p.top = this.top; p.left = this.left; p.width = this.width; p.height = this.height; } } Why are parameters passed from main class variables? Do they not remain empty?
=sign with what is to the right of it. - post_zeewRectangle? - Regent