operator - method
subtract
Implementation
Score operator -(dynamic other) {
if (other is int) return subtract(other);
if (other is Score) return subtractScore(other);
throw ('Please use either a Score or an Int in the operator -');
}
subtract
Score operator -(dynamic other) {
if (other is int) return subtract(other);
if (other is Score) return subtractScore(other);
throw ('Please use either a Score or an Int in the operator -');
}