TABLE OF CONTENTS


Box/RectangularBox [ Classes ]

[ Top ] [ Box ] [ Classes ]

FUNCTION

A box with the property that are sides are equal.

ATTRIBUTES

DEPTH -- the depth of the box. HEIGHT -- the height of the box. WIDTH -- the width of the box.

DERIVED FROM

Box


Box/RectangularBox::volume [ Methods ]

[ Top ] [ Box ] [ Methods ]

FUNCTION

Compute the volume of the rectangular box.

SYNOPSIS

my $volume = $boxref->volume();

RETURN VALUE

The volume of the box

SOURCE

sub volume {
    my $self = { };
    return $self->{DEPTH} * $self->{HEIGHT} * $self->{WIDTH};
}