January 2018
Intermediate to advanced
434 pages
14h 1m
English
Extension functions provide the ability to add new functionalities to a class without modifying the class or inheriting it or using any design pattern. Extension functions are resolved statically and bear no connection with the class they extend.
By operator overloading, Kotlin gives us the ability to provide implementations of a predefined set of operators. To overload an operator, we can use a member function or an extension function, which we used in the preceding case.
Read now
Unlock full access