8
Object-Oriented Programming
Object-oriented programming (OOP) has been a very popular paradigm in the programming community over the last few decades. Several popular languages either explicitly embrace the object-oriented paradigm or style themselves as "multi-paradigm" languages with some level of support for it.
Rust falls in the latter category, and in this chapter, we'll learn about Rust's unique take on object orientation, see how it contrasts with C++'s approach, and examine how it can be combined with Rust's functional influences.
In this chapter, we're going to cover the following main topics:
- Understanding object-oriented principles
- Examining object-oriented foundations in Rust
- Moving beyond object orientation