Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 9 additions & 12 deletions rustbook-uz/src/ch17-00-oop.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
# Object-Oriented Programming Features of Rust
# Rust dasturlash tilining Obyektga asoslanga dasurlash xususiyatlari

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 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 others it is not. In this chapter, we’ll explore certain characteristics
that are commonly considered object-oriented and how those characteristics
translate to idiomatic Rust. We’ll 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 Rust’s strengths instead.
Obyektga asoslangan yoki obyektga yonaltirilgan dastrulash konsepsiyasi 1960 yillarda Simala dasturlash tilida ilk bor kiritilgan.
Ushbu obyektlar Alan Kayning obyektlar bir biriga xabar yollashi haqidagi arxitekturasini ishlab chiqishiga turtki bo'lgan.
Bu arxitekturani tasvirlash uchun 1967 yilga (OOP-Object oriented programming) obyektga yonaltirilgan(asoslangan) dasturlash terminini ishlab chiqdi.
Ko'plab tariflar OOP ni ifodalash uchun ishlatiladi. Bazi ta'riflarga k'ora Rust bu obyektga asoslanga, bazilariga ko'ra esa unday emas(obyektga
asoslangan emas).
Ushbu bo'limda biz aniq bo'lgan qaysiki obyektga asoslanishligi aytilgan xarakteristikalarni va ular Rustga qanday ishlashini ko'rib chiqamiz.
Undan keyin esa obyektga asoslangan dasturlash dizaynini Rustga qo'llashni ko'rsatamiz va ushbu uslubni qo'llash va Rustning o'zini kuchli mexanizmidan
foydalanishni muhokama qilamiz(taqqoslov tarzida).