يا شباب في فقرات في الهوموورك ما فهمت المطلوب.
The homework:
(a) Write a Box class that has:
-
Three constructors: A three-parameter constructor, a one-parameter constructor (used to create a box whose three sides are equal), and a parameter-less constructor (used to create a box whose three sides are each one meter).
-
The following methods: getVolume( ) , getSurfaceArea( ) that returns the surface area of a closed box, setLength(double newLength), setWidth(double newWidth), setHeight(double newWidth).
(b) Write a TestBox class that:
- Creates three Box objects, using each of the Box constructors.
- Modifies the length of one of the box objects.
- Displays the total volume and the total surface area of the three boxes. Assume that the sides of each box object are in meters
-----------------------------------------------------------------------------------
1-في ال Methods :
setLength(double newLength), setWidth(double newWidth), setHeight(double newWidth).
ايش الغرض منها بالضبط في البرنامج ؟؟؟؟ وال return حقهم ايش احط فيه ؟؟
2- Modification of th length ايش الطريقة للتعديل الي لازم استدخدمها ؟؟؟
و جزا الله الي يساعدني خيرا .