Answer:
Answered below
Step-by-step explanation:
//Program is written in Java programming //language
Class Box{
 private double length;
private double width;
private double height;
 Box(double len, double wid, double hgt){
 length = len;
 width = wid;
 height = hgt;
}
 public double volumeOfBox( ){
 double volume = length * width * height;
 return volume;
 }
public double getLength( ){
 return length;
}
public double getWidth( ){
 return width;
}
public double getHeight( ){
 return height;
}
}