Exemple #1
0
bool RationalNumber::operator >(const RationalNumber &another) const {
    return another.lessThan(*this);
}
Exemple #2
0
bool RationalNumber::operator >=(const RationalNumber &another) const {
    return another.lessThan(*this) || this->equal(another);
}