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