C_CPP/src/08_PTRN/MP/Currency.cpp

10 lines
216 B
C++

#include <utility>
#include "Currency.h"
Currency::Currency(std::string name, float rate) : name(std::move(name)), rate(rate) {}
bool Currency::operator==(Currency &currency) {
return name == currency.name;
}