3가지 구현중 1가지만 있으면 된다. using namespace std; //산술 연산자 오버로딩 class Cents { int m_value; public: Cents(const int& value) { m_value = value; } const int& getValue() const { return m_value; } const void setValue(const int& value) { m_value = value; } // 1. Cents 의 매개함수의 형태 int operator +(const Cents& c2) { return Cents(this->m_value + c2.m_value).getValue(); } // 2. Cetnts 내부에 있지만 friend 로 인해 외부함수나 다름없는..