isAfter method
Implementation
bool isAfter(MonthAndYear other) {
return year > other.year || (year == other.year && month > other.month);
}
bool isAfter(MonthAndYear other) {
return year > other.year || (year == other.year && month > other.month);
}