Skip to content

Instantly share code, notes, and snippets.

@sandromancuso
Created March 6, 2012 19:15
Show Gist options
  • Save sandromancuso/1988369 to your computer and use it in GitHub Desktop.
Save sandromancuso/1988369 to your computer and use it in GitHub Desktop.
public class StandardPricingService extends VoucherPrincingService {
private final StandardPriceCalculation standardPriceCalculation = new StandardPriceCalculation();
@Override
protected double calculateProductPrice(Product product, int quantity) {
return standardPriceCalculation.calculateProductPrice(product, quantity);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment