RectangularPrism
– length: double
– width: double
– height: double
+ RectangularPrism()
+ RectangularPrism(l:double,w:double, h:double)
+ setLength(l:double):void
+ setWidth(w:double):void
+ setHeight(h:double):void
+getLength():double
+getWidth():double
+getHeight():double
+getVolume():double
+getSurfaceArea():double
+toString():String
- Create a RectangularPrism class in its own file based on theUML
- Create a separate RectangularPrismDemo Class file todemonstrate your class by doing the following:
- Create two prisms, one with each constructor
- Test each of your set and get methods
- Print out the information for both of your Prisms, usingprintf()
- Please be sure to include all requested methods with javadocdocumentation for each method.
I am a little lost on how to start here, every time I try, Iseem to be running into errors that I can’t find the solution to
OR
OR