Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Box {
- private double w;
- private double l;
- private double h;
- public void SetW(double w1)
- {
- w = w1;
- }
- public void SetL(double l1)
- {
- l = l1;
- }
- public void SetH(double h1)
- {
- h = h1;
- }
- public double GetW()
- {
- return w;
- }
- public double GetL()
- {
- return l;
- }
- public double GetH()
- {
- return h;
- }
- public double Area(double Area)
- {
- return w*l;
- }
- public double Volume(double Volume)
- {
- return w*l*h;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement