package boxbox;
public class Boxtest
{
public static void main(String[]args)
{Box box1,box2;
box1=new Box(2,3,1);
box2=new Box(2,5,10);
System.out.println("Box One:Height Width Depth Full?");
System.out.println(box1);
System.out.println();
System.out.println("Box Two Height Width Depth Full?");
System.out.println(box2)
}
}
package boxbox;
public class Box {
private int height,width,depth;
private boolean full=false;
public Box(int h,int w,int d)
{height=h;
width=w;
depth=d;
}
public int getHeight()
{return height;}
public int getWidth()
{return width;}
public int getDepth()
{return depth;}
public void setHeight(int h)
{height=h;}
public void setWidth(int w)
{width=w;}
public void setDepth(int d)
{depth=d;}
public String toString()
{return height+"\t"+width+"\t"+depth+"\t"+full;}
}