August 2017
Intermediate to advanced
440 pages
10h
English
In the previous chapter, we discussed concepts related to functional programming and functions as first-class citizens in Kotlin.
In this chapter, we will discuss the concepts of generic types and generic functions, known as generics. We will learn why they exist and how to use them and also how to define generic classes, interfaces, and functions. We will discuss how to deal with generics at runtime, take a look at subtyping relations, and deal with generic nullability.
In this chapter, we will cover the following topics:
Read now
Unlock full access