Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
export class ThreeOrMoreSameBooksDiscountCalculator implements DiscountCalculator {
private TWENTY_FIVE_PERCENT_DISCOUNT = 1 - 0.25
applyDiscountOn(price: number): number {
return price * this.TWENTY_FIVE_PERCENT_DISCOUNT
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.