Chapter 10. Object-Oriented Programming
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 ...
Get Android Programming with Kotlin for Beginners now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.