Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Cube
- {
- public int Side;
- public Cube(int side)
- {
- if (side <= 0)
- {
- this.Side = Math.Abs(side);
- }
- else
- {
- this.Side = side;
- }
- }
- public Cube(){
- Side = 0;
- }
- public void SetSide(int side)
- {
- if (side <= 0)
- {
- this.Side = Math.Abs(side);
- }
- else
- {
- this.Side = side;
- }
- }
- public int GetSide()
- {
- return this.Side;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement