operator + method

double operator +(
  1. num other
)

Addition operator

Implementation

double operator +(num other) {
  return value + other;
}