File: encapsulation

package info (click to toggle)
libdb2-ruby 0.5.4-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,352 kB
  • ctags: 2,743
  • sloc: ansic: 11,156; ruby: 6,199; cpp: 6,064; makefile: 86; sh: 31
file content (16 lines) | stat: -rw-r--r-- 640 bytes parent folder | download | duplicates (18)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<entry index='e'>
<name>Encapsulation</name>
<reference>instance variable</reference>
<reference>method</reference>
<reference>data</reference>
<reference>ruby</reference>
<content>
    To hide the algorithm of an internal structure and processing from outside,
    by the immediate operation to ((data|Data)) only from a specific procedure
    (called the ((method|Method))) which accompanies the type of data.
    See also "((Abstract Data Type))."

    In ((Ruby)) it can be said that encapsulation will be compelled
    since it is impossible to refer to the ((instance variable|Instance Variable)) from non-method.
</content>
</entry>