Hi, i am revising for an exam, and i am having trouble asnwering a question on a past paper, i was wondering if anyone could please help me with this question.
the class below represents a cubic box:
Cube
side
get side()
getVolume()
the attribute shown representing the size of each of its sides. it cotains no set.. method for the attribute side; instead write the implementation for a constructor method which will initiate this value when an object of the class is created.
part b) write the implementation of the method getVolume()..
thanks very much
