122k views
1 vote
Encapsulation is a form of information hiding and an important characteristic of object-oriented programming. When a programmer accesses a property that has been encapsulated, he/she has no way of knowing how that property is implemented. All he/she knows is how to access that property via the public setter and getter methods. What are some examples of encapsulation or information hiding in the Bible

User Semih
by
5.3k points

1 Answer

1 vote

Answer:

There are a whole lot of encapsulation or information hiding examples in the Bible. Here are about 3 of them:

i. The parables of Jesus. Many times Jesus spoke in parables to teach His disciples and until He's explained they would not get the meaning.

ii. The interpretation of dreams by Joseph. A noticeable example is the one of the baker and the butler in Genesis 40. Each of them - the butler and the baker - both had a dream but the actual meaning and interpretation of those dreams were not known by them.

iii. Peter walking on water is yet another example of encapsulation. He was only following the instruction of the master. How he was able to walk on water was a mystery to him. Only Christ the master knew how. Encapsulation.

User Matthew
by
6.3k points