运算符重载
2018-11-29 本文已影响0人
zlzxm
示意图
1. + plus / div
- minus % rem / mod
* times .. rangeTo
2.详情看http://kotlinlang.org/docs/reference/operator-overloading.html#operator-overloading
1. + plus / div
- minus % rem / mod
* times .. rangeTo
2.详情看http://kotlinlang.org/docs/reference/operator-overloading.html#operator-overloading