operator * method Null safety

num operator * (
  1. num other
)

Multiplies this number by other.

The result is an int, as described by int.*, if both this number and other is an integer, otherwise the result is a double.

Implementation

num operator *(num other);