volume method

double volume()

Get the volume of this shape

Implementation

double volume() {
  throw 'volume() not implemented for shape type $type';
}