#include using namespace std;class Fraction{private: int m_numerator; int m_denominator;public: Fraction() { m_numerator = 0; m_denominator = 1; } void print() { cout 반환 name이 없고 class와 이름이 같은 것은 생성자입니다. 외부에서 호출하려고 쓰려는 것이 아닌 어떤 변수를 만들 때 해당 변수의 값을 지정하고 싶을 때 이런 식으로 해주는 것입니다. 생성자 안에서 numerator의 값을 바꾸면 편하게 바꿔줄 수 있는 것입니다. #include using namespace std;class Fraction{private: int m_numerator; int ..