5 # A box with the property that are sides are equal.
7 # SIDE_LENGTH -- the length of each side
19 my $classname = shift;
20 my $self = $classname->SUPER::new(@_);
28 #****m* Box/SquareBox::side
30 # Set or get the side length of the square box.
32 # $boxref->side(100.25);
33 # my $length = $boxref->side();
35 # The volume of the box
42 $self->{SIDE} = $length;
49 #****m* Box/SquareBox::volume
51 # Compute the volume of a square box.
53 # my $volume = $boxref->volume();
55 # The volume of the box
60 return $self{SIDE} * $self{SIDE} * $self{SIDE} ;