Overview of Kotlin

Kotlin is the official Android programming language and is statically typed. It is fully interoperable with Java, meaning that any Kotlin user can use the Java framework and mix commands from both Kotlin and Java without any limitations. In this chapter, we will cover the basics of Kotlin and will look at how to set up the environment. We will also look at its flow structures, such as if { ... } else { ... } expressions and loops. In addition to this, we will look into object-oriented programming for Kotlin, and we will cover classes, interfaces, and objects. Functions will also be covered, along with parameters, constructors, and syntax.

This chapter will cover the following topics:

  • Setting up the environment
  • Build tools
  • Basic syntax
  • Object-oriented programming
  • Functions
  • Control flow
  • Ranges
  • String templates
  • Null safety, reflection, and annotations
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.128.200.71