Please design a class bar3D represent a 3D bar, the class bar3D must include at least three public member width, height and depth.
Please design a constructor for bar3d. The constructor hold three parameter to set width, height and depth in order.
The valid range for width, height and depth is greater than 0 and smaller than 1000.
If any one of three member are out of range, then set all of them to 0.
use this below to help:
Code:class bar3dCode:{ };