operator + method

int operator +(
  1. int other
)

Addition operator

Implementation

int operator +(int other) {
  return value + other;
}