package com.example; public class BoxModel { private double width; private double height; private double depth; private double area; private double volume; public BoxModel(double width, double height, double depth) { this.width = width; this.height = height; this.depth = depth; } public double getWidth() { return width; } public void setWidth(double width) { this.width = width; } public double getHeight() { return height; } public void setHeight(double height) { this.height = height; } public double getDepth() { return depth; } public void setDepth(double depth) { this.depth = depth; } public double getVolume(){ return this.width * this.height * this.depth; } public double getArea(){ return 2 * (this.width * this.height + this.width * this.depth + this.height * this.depth); } }