isAfter method

bool isAfter(
  1. MonthAndYear other
)

Implementation

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