force the overriding of the calculate class
This commit is contained in:
parent
2b1409222c
commit
920b36d728
2 changed files with 23 additions and 7 deletions
|
|
@ -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 ( )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue