if((roomIn.getWidth()*roomIn.getDepth()) == width*depth) { // the same size, return true return true; } else { // Not the same size, return false return false; }
// ditto for the depth return depth;
// Accessor method to return the width return width;
this.width = width; this.depth = depth; System.out.println("Setting the size of room to "+width+" "+depth);