Update implemented removeCurrency

This commit is contained in:
Lev
2021-06-12 20:46:33 -05:00
parent 40750a8d28
commit 016d72d795
4 changed files with 30 additions and 2 deletions

View File

@ -10,6 +10,9 @@ class Wallet
/** insert currency to the wallet */
void insertCurrency(std::string type, double amount);
/** remove currency from the wallet */
bool removeCurrency(std::string type, double amount);
/** check if the wallet contains at least this much currency */
bool containsCurrency(std::string type, double amount);