Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implement real reduce operation for bank #13

Merged
merged 4 commits into from
Sep 29, 2022

Conversation

kaiosilveira
Copy link
Owner

@kaiosilveira kaiosilveira commented Sep 29, 2022

In the previous chapter, we introduced a stubbed version of a Bank, which was able to reduce a given amount. This PR brings the real implementation for this operation, introducing the Sum class implementation of the Expression interface.

Task list:
- $5 + 10CHF = $10 if rate is 2:1 🎯
- $5 + $5 = $10 👈🏼
Task list:
- $5 + 10CHF = $10 if rate is 2:1 🎯
- $5 + $5 = $10 👈🏼
- Return Money from $5 + $5
Task list:
- $5 + 10CHF = $10 if rate is 2:1 🎯
- $5 + $5 = $10 👈🏼
- Return Money from $5 + $5
Task list:
- $5 + 10CHF = $10 if rate is 2:1 🎯
- $5 + $5 = $10 👈🏼
- Return Money from $5 + $5
- Bank.reduce(Money)
- Reduce Money with conversion
- Reduce(Bank, String)
@kaiosilveira kaiosilveira merged commit 579f41b into main Sep 29, 2022
@kaiosilveira kaiosilveira deleted the chapter13/implement-real-reduce-operation-for-bank branch September 30, 2022 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant