Skip to content

ch17-01 : カプセル化の定義を修正 #222

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master-ja
Choose a base branch
from
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
4 changes: 2 additions & 2 deletions src/ch17-01-what-is-oo.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ programmer to change and refactor an object’s internals without needing to
change the code that uses the object.
-->

OOPとよく紐づけられる別の側面は、カプセル化の思想です。これは、オブジェクトの実装詳細は
そのオブジェクトを使用するコードにはアクセスできないことを意味します。故に、
OOPとよく紐づけられる別の側面は、カプセル化の思想です。これは、オブジェクトを使用するコードは
そのオブジェクトの実装詳細にはアクセスできないことを意味します。故に、
オブジェクトと相互作用する唯一の手段は、その公開APIを通してです; オブジェクトを使用するコードは、
オブジェクトの内部に到達して、データや振る舞いを直接変更できるべきではありません。
このために、プログラマはオブジェクトの内部をオブジェクトを使用するコードを変更する必要なく、
Expand Down