Tag: delegation

Kotlin Operator Overloading – Working by Convention

Kotlin Operator Overloading – Working by Convention

Operator Overloading and Conventions in Kotlin

Introduction

Kotlin supports a technique called conventions, everyone should be familiar with. For example, if you define a special method plus in your class, you can use the + operator by convention, Kotlin’s approach to operator overloading.
In this article I want to show you which conventions can be used and will provide some Kotlin code demonstrating the concepts of course.

Read More Read More

Please follow and like this Blog 🙂

Enjoy this blog? Please spread the word :)