

class Box {

	// fields
	private int height = 0;
	private int width = 0;
	private int length = 0;

	//constructor
	public Box(int h, int w, int l) {
		this.height = h;
		this.width = w;
		this.length = l;
	}

	//getter methods
	public int getHeight() {
		return this.height;
	}

	public int getWidth() {
		return this.width;
	}

	public int getLength() {
		return this.length;
	}

	public String toString() {
		return "(" + this.height + "," + 
			this.width + "," + this.length + ")";
	}

	public boolean equals(Object obj) {
		if (!(obj instanceof Box)) {
			return false;
		}

		Box temp = (Box) obj;

		// height, width, and length are "significant fields"
		boolean sameHeight = (this.height == temp.height);
		boolean sameWidth = (this.width == temp.width);
		boolean sameLength = (this.length == temp.length);

		if (sameHeight && sameWidth && sameLength) {
			return true;
		}
		else {
			return false;
		}

	}


}
