//This class represents a box with a width, height, and depth.
//The variable grade is a measure of the thickness of the cardboard
//used to construct the box.

public class Box2{

	private int width, depth;
	private static int height, grade;

	//class constructor
	public void Box2(int width, int height, int depth, int grade)
	{
		width = width;
		height = height;
		depth = depth;
		grade = grade;
	}

	//Two boxes should be considered equivalent if their volume is
	//the same and they are constructed out of the same grade of cardboard.
	//returns true if they are equivalent and false otherwise
	public boolean equals(Box b)
	{
		return this.getVolume() == b.getVolume() && this.getGrade() = b.getGrade();
	}

	//If this Box is larger than the argument Box b
	//then return this Box - otherwise return b
	public Box larger(Box b)
	{
		if(b.getVolume() > this.getVolume)
			return this;
		return b;
	}

	//Simple getter methods
	public int getGrade()
	{
		return g;
	}

	public int getVolume()
	{
		return width * height * depth * grade;
	}

	public int getWidth()
	{
		return width;
	}

	public double getHeight()
	{
		return height;
	}

	public int getDepth(int b)
	{
		return b;
	}
}


