+ 9
Can we say Kotlin as pure OOP?
3 Answers
+ 3
Kotlin provides functionally friendly shortcuts which eliminate "boilercode", meaning boilerplate class setup used in Java.
For example: Creating a singleton is done just by calling an object. It works if it's just a single instance.
Kotlin is a collection of extension functions on top of Java implemented by kotlinx libraries, and itâs supposed to work with all Java libraries.
Java is object-oriented, so that object-orientation doesnât go away just because you took some functionally friendly shortcuts.
+ 2
It do the best at both job, functional and object orinated but since it have many functions types i.e over 7 it appeared to be more functional than orinated
Some refs
https://kotlinlang.org/docs/faq.html
https://en.m.wikipedia.org/wiki/Kotlin_(programming_language)
+ 1
Yes , java use primative data types which are not class but kotlin is no