finished ch17.6 and ch18 intro
Some checks failed
Test Gitea Actions / first (push) Successful in 14s
Test Gitea Actions / check-code (push) Failing after 13s
Test Gitea Actions / test (push) Has been skipped
Test Gitea Actions / documentation-check (push) Has been skipped

This commit is contained in:
2025-03-31 16:32:24 -06:00
parent 1092bec5ad
commit 665215bd19
5 changed files with 208 additions and 6 deletions

View File

@ -0,0 +1,16 @@
# Object-Oriented Programming Features of Rust
OOP is a way of modeling programs.
Objects as a programmatic concept were introduced in the programming language Simula in the 1960s.
These objects influenced Alan Kay's programming architecture in which objects pass messages to each other.
To describe this architecture, he coined the term *object-oriented programming* in 1967.
Many competing definitions describe what OOP is, and by some of these definitions Rust is object-oriented, but by other it is not.
In this section, we will explore certain characteristics that are commonly considered object-oriented and how those characteristics translate to idiomatic Rust.
Next we will show how to implement an object-oriented design pattern in Rust and discuss the trade-offs of doing so.
Versus implementing a solution using some of Rust's strengths instead.