force the overriding of the calculate class

This commit is contained in:
Colin Kuskie 2008-02-25 21:11:44 +00:00
parent 2b1409222c
commit 920b36d728
2 changed files with 23 additions and 7 deletions

View file

@ -60,6 +60,19 @@ sub _buildObj {
}
#-------------------------------------------------------------------
=head2 calculate ( )
This method calculates how much it costs to ship the contents of a cart. This method
MUST be overridden in all child classes.
=cut
sub calculate {
croak "You must override the calculate method";
}
#-------------------------------------------------------------------
=head2 className ( )