Files
docs-rust/ch18/ch18-00-oop.html
2026-06-22 21:27:36 +05:30

24 lines
1.3 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Object Oriented Programming Features</title>
</head>
<body>
<h1 id="object-oriented-programming-features"><a class="header" href="#object-oriented-programming-features">Object-Oriented Programming Features</a></h1>
<!-- Old headings. Do not remove or links may break. -->
<p><a id="object-oriented-programming-features-of-rust"></a></p>
<p>Object-oriented programming (OOP) is a way of modeling programs. Objects as a
programmatic concept were introduced in the programming language Simula in the
1960s. Those objects influenced Alan Kays programming architecture in which
objects pass messages to each other. To describe this architecture, he coined
the term <em>object-oriented programming</em> in 1967. Many competing definitions
describe what OOP is, and by some of these definitions Rust is object oriented
but by others it is not. In this chapter, well explore certain characteristics
that are commonly considered object oriented and how those characteristics
translate to idiomatic Rust. Well then show you 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 Rusts strengths instead.</p>
</body>
</html>