Can we say Kotlin as pure OOP? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 9

Can we say Kotlin as pure OOP?

19th Feb 2021, 9:25 AM
Wei Phyo Aung
Wei Phyo Aung - avatar
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.
19th Feb 2021, 10:17 AM
Matias
Matias - avatar
+ 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)
19th Feb 2021, 9:51 AM
Ananiya Jemberu
Ananiya Jemberu - avatar
+ 1
Yes , java use primative data types which are not class but kotlin is no
27th Feb 2021, 6:10 AM
Learn
Learn - avatar