OOP overview
OOP is one of the most widely used programming paradigms to create software. You could also argue that it is the most popular, but it is certainly one of the many paradigms that all programmers must learn at some point, which is why we have dedicated a chapter to it in the book.
Some programming languages only support one programming paradigm, and others support more than one. Kotlin is a multi-paradigm language, meaning that we can work with different programming paradigms such as OOP, functional programming, procedural programming, declarative programming, reactive programming, and data-oriented programming using the same language.
A programming paradigm can be defined as a type of solution that is already defined, with some established ways of doing things, so when we use a programming paradigm, we use existing rules and definitions to try to address a type of problem and solve it in a certain way, or with a certain technique. It is a distinct set of concepts...