Syntax, features & capabilites
About the Book
Kotlin is a cross-platform, multi-purpose modern programming language.
In 2017, Google announced that it will support Kotlin as a first-class language for Android application development. In 2019, Kotlin was ranked as the fourth most loved programing language on Stack Overflow annual developer survey.
Kotlin is known for its concise syntax and the support for multi-platform programming.
In this mini-book, we are trying to cover syntax and features of Kotlin in a straight and to the point explanation with sample code.
CHAPTER 1 | Getting Started
- 1.1 | Tools
- 1.2 | Kotlin Basic Syntax
CHAPTER 2 | Classes and Inheritance
- 2.1 | Class Anatomy
- 2.2 | Class Inheritance
CHAPTER 3 | Packages & Visibility Modifiers
- 3.1 | Packages
- 3.2 | Visibility Modifiers
CHAPTER 4 | Properties & Fields
- 4.1 | Class Properties
- 4.2 | Compile-Time Constants
- 4.3 | Late-Initialization
CHAPTER 5 | Abstract Classes and Interface
- 5.1 | Abstract Class
- 5.2 | Interface
CHAPTER 6 | Nested Class, Inner Class, Local Class & Anonymous Class
- 6.1 | Nested Class
- 6.2 | Inner Class
- 6.3 | Local Class
- 6.4 | Anonymous Class
CHAPTER 7 | Data Classe, Enum Class, Sealed Class, Inline Class
- 7.1 | Data Class
- 7.2 | Enum Class
- 7.3 | Sealed Class
- 7.4 | Inline Class experimental
CHAPTER 8 | Object Expression and Declarations & Companion objects
- 8.1 | Object Expression
- 8.2 | Object Declarations
- 8.3 | Companion Objects
CHAPTER 9 | Delegation & Property Delegation
- 9.1 | Delegation
- 9.2 | Delegated Properties
- 9.3 | Standard Delegates
CHAPTER 10 | Extensions
- 10.1 | Extension Functions
- 10.2 | Extension Properties
- 10.3 | More about Extension
CHAPTER 11 | Generics
- 11.1 | Generic Classes
- 11.2 | Generic Functions
- 11.3 | Generic Constraints
CHAPTER 12 | Functions and Lambdas
- 12.1 | Functions Basics
- 12.2 | Function Types & Higher-Order Functions
- 12.3 | Lambdas
- 12.4 | Inline Functions
CHAPTER 13 | Collections & Sequences
- 13.1 | Collection
- 13.2 | Iterations
- 13.3 | Sequences
- 13.4 | Collection Operations
CHAPTER 14 | Coroutines
- 14.1 | Blocking vs. non-Blocking
- 14.2 | Coroutine Basics
The Leanpub 60-day 100% Happiness Guarantee
Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
See full terms
80% Royalties. Earn $16 on a $20 book.
We pay 80% royalties. That's not a typo: you earn $16 on a $20 sale. If we sell 5000 non-refunded copies of your book or course for $20, you'll earn $80,000.
(Yes, some authors have already earned much more than that on Leanpub.)
In fact, authors have earnedover $12 millionwriting, publishing and selling on Leanpub.
Learn more about writing on Leanpub
Free Updates. DRM Free.
If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).
Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.
Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.