This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Complex(private var real: Double, private var image: Double) { | |
| // empty constructor | |
| constructor() : this(0.0, 0.0); | |
| operator fun plus(C: Complex): Complex { | |
| return Complex(this.real + C.real, this.image + C.image) | |
| } | |
| operator fun minus(C: Complex): Complex { |