
class Box2 {
	// fields
	private int height = 1;
	private int width = 1;
	private int length = 1;


	// constructor
	public Box2(int height, int width, int length) {
		this.height = (height <= 0) ? 1 : height;
		this.width = (width <= 0) ? 1 : width;
		this.length = (length <= 0) ? 1 : length;
	}

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

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

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

	// setter
	public void setHeight(int height) {
		if (height > 0) {
			this.height = height;
		}
	}

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



}
