operator + method

Score operator +(
  1. dynamic other
)

add

Implementation

Score operator +(dynamic other) {
  if (other is int) return add(other);
  if (other is Score) return addScore(other);
  throw ('Please use either a Score or an Int in the operator +');
}