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(internal var real: Int, internal var image: Int) { | |
| operator fun plus(C: Complex): Complex { | |
| return Complex(this.real + C.real, this.image + C.image) | |
| } | |
| operator fun minus(C: Complex): Complex { | |
| return Complex(this.real - C.real, this.image - C.image) | |
| } |