27 lines
504 B
C++

#ifndef C_C_MONEY_H
#define C_C_MONEY_H
#include "Currency.h"
class Money {
private:
double value;
Currency currency;
public:
explicit Money(double value = 0, Currency currency = CurrencyValue::USD);
Money& operator=(Money money);
Money operator+(Money &a);
Money operator-(Money &a);
const Money operator++(int);
const Money operator--(int);
bool operator==(Money &a);
bool operator!=(Money &a);
double getValue();
Currency getCurrency();
};
#endif