In this chapter, we will discover that, in Kotlin, classes are fundamental to just about everything and, in fact, just about everything is a class.
We have already talked about reusing other people's code, specifically the Android API, but in this chapter, we will really get to grips with how this works and learn about object-oriented programming (OOP) and how to use it.
In this chapter, we will cover the following topics:
Introduction to OOP and the three key topics of encapsulation, polymorphism, and inheritance
Basic classes, including how to write our first class including adding properties for data/variable encapsulation and functions to get things done
Explore visibility modifiers that further aid and refine encapsulation
Learn about constructors that enable us to quickly prepare our classes to be turned into usable objects/instances
Code a Basic Classes mini app to put in to practice everything we have learned in this chapter
If you try to memorize...