Discussion – How is OOP encapsulation & Gods Encapsulation alike
docx
keyboard_arrow_up
School
Liberty University *
*We aren’t endorsed by this school
Course
312
Subject
Religion
Date
Dec 6, 2023
Type
docx
Pages
6
Uploaded by ChefCheetah6204
Discussion – How is OOP encapsulation & Gods Encapsulation alike?
Why God revealed Himself in stages, starting with Israel and then spreading through
missionaries, has long puzzled mankind. Why did he wish to hide his plans from his children?
Why not provide a clear revelation to every nation at once, supported by miracles comparable to
those of other nations? Why hide the details? The Old Testament addresses this question: Such a
discovery puts a people under huge responsibilities and demands. (Divine Hiddenness as Divine
Mercy on JSTOR, n.d.). So, God encapsulates his grand plans, and we must use the constructors,
getters, and setters that he supplied us.
Encapsulation is a fundamental principle employed in Object-Oriented Programming
(OOP) to prevent direct access to some components of an object, hence concealing its underlying
representation. The notion of encapsulation can also be found in biblical texts. Who is the entity
responsible for issuing condemnations? The one referred to as Christ Jesus is the one who
experienced death and afterwards was resurrected. Furthermore, this individual currently
occupies a position of prominence at the right hand of God. Additionally, Christ Jesus fulfills the
role of intercessor on behalf of humanity. This information is derived from the book of Romans,
specifically verse 8:34.
Christians just need to know that Jesus died on the cross for our sins and
rose again to destroy sin and death (1 Cor 15:3-4). Christ will save us if we believe and trust
Him. How does it work? We don't grasp everything. We know that Adam's sin caused death for
everyone, but Jesus's righteous death made resurrection possible (1 Cor 15:21-22).
The fight at Jericho is a second example of encapsulation in the Bible. In Joshua 6, God
tells Joshua that the Israelites should circle Jericho once a day for six days, and then seven times
on the seventh day while shouting and blowing horns (Josh 1–5). This is the Setter, going around
Jericho and blowing horns. The Getter: The walls of Jericho will fall down, letting the Israelites
take over the whole city. God doesn't say how the walls of the city will fall down or what going
around the city has to do with it. The toString, showing properly formatted fact, the Israelites do
what God told them to do, and they get what God promised.
REFERENCES:
DUMSDAY, T. (2012). Divine hiddenness as divine mercy. Religious Studies, 48(2), 183–198.
http://www.jstor.org/stable/23260016
Reply’s:
Posted:
Joshua Viars
Firstly, encapsulation is the bundling of data with methods, restricting access to some of the
object's components. I believe the Garden of Eden is a perfect example that answers the given
prompt. Genesis Chapter 3, Verse 3 says "but God did say, `You must not eat fruit from the tree
that is in the middle of the garden, and you must not touch it, or you will die.'"". In the Garden of
Eden, the tree of the knowledge of good and evil can be metaphorically seen as a "private
variable." It holds specific data—knowledge of good and evil—that is not to be directly
accessed. At this time it is believed that Adam and Eve only knew of good, namely, what God
told them and what they could see in the garden. Within this world was hidden information, in
this case: the knowledge of evil and its workings. The adversary tempted Eve and convinced her
to eat the fruit that God had explicitly stated not to eat. At this point in time, a particular
characteristic present in existence was revealed - the knowledge of evil. Previously this
information had been "set to private", thereby hiding this information from Adam and Eve, but
after Adam and Eve partook of the forbidden fruit this information was publicized to humanity.
Before this Adam and Eve did have public methods to access things in the garden, the world, and
direct access with the coder. In simple terms, the sin within this metaphor is Adam and Eve
accessing a variable that God had set to private. The temptation was the serpent convincing Eve
to access this variable. Private variables are not intended to be accessed by an unauthorized user,
and such an action can cause unintended consequences to the user accessing the variable, in this
case accessing the variable caused a horrible consequence - separation from God.
References
NIV Bible. (2007). . Hodder & Stoughton Ltd.
My Reply:
Joshua,
I liked the way you related encapsulation to the story of Adam and Eve. You made the
concept quite easy to understand and related many OOP concepts. Another great story of
encapsulation and God being the master programmer to be the story of Moses.
Encapsulation is also often used to hide the internal representation of an object from the
outside which is also known as information hiding. It is a mechanism of restricting direct access
to some of the object's components (Divine Hiddenness as Divine Mercy on JSTOR, n.d.). For
example, if you have an attribute that is not visible from the outside of an object and bundle it
with methods that provide read or write access to it, then you can hide specific information and
control access to the internal state of the object. Abstraction is the act of representing essential
information without including background details and explanations. Therefore, encapsulation is a
way to implement abstraction classes and methods.
Another example of encapsulation can be found in the story of how Moses was
discovered and adopted.
And the woman conceived, and bare a son: and when she saw him that
he was a goodly child, she hid him three months
(Exodus 2:2).
And the child grew, and she
brought him unto Pharaoh's daughter, and he became her son. And she called his name Moses:
and she said, Because I drew him out of the water.
(Exodus 2:10). The baby Moses was sent in
the waters where his sister Miriam watching him. After the baby reached Pharaoh's daughter, she
bought her mother to raise up the child for which her mother will be paid. So, the data of the
baby boy Moses is grown up by his own mother and Miriam being her sister was hidden from the
Pharaoh's daughter and the Egyptians. The data was within the class members of Miriam and it
was hidden from the Egyptians. Restricting access from the "Miriam" class ultimately set in
motion the great escape from slavery and bondage.
References:
REFERENCES:
DUMSDAY, T. (2012). Divine hiddenness as divine mercy. Religious Studies, 48(2), 183–198.
http://www.jstor.org/stable/23260016
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help
Reply 2:
Christian Edwards
Encapsulation is a term describing the technique for packaging information in a way that hides
what information should be hidden, and to make visible what is intended to be visible (Berard,
2019). I can see the idea of where there are many examples of encapsulation in the Bible, such as
in the Old Testament stories of the baker and butler's dreams that could only be understood by
Joseph, and in the New Testament stories of Peter walking on the water ( he did not understand
but he obeyed), and the Transfiguration where the disciples saw His power, but could not
understand how He did what He did. The most obvious examples of all to me would be the
parables of Jesus. In the four gospels there are many parables that were shared by Jesus to teach
simple truths in a way which was more easily understood to the masses . He usually used a
simple, common object (such as salt, bread, or sheep) that could be then expounded on to share
a deeper meaning. The best example I see is when Jesus shared the parable of the seed and the
different soils. He pulled his disciples to the side and explained to them in Matthew 13:10-17,
"To you it has been granted to know the mysteries of the kingdom of heaven, but to them it has
not been granted. For whoever has, to him more shall be given, and he will have an abundance;
but whoever does not have, even what he does have shall be taken away from him. Therefore I
speak to them in parables; because while seeing they do not see, and while hearing they do not
hear, nor do they understand. In their case the prophecy of Isaiah is being fulfilled, which says,
'Hearing you will hear and not understand. And seeing you will see and not perceive; For the
hearts of this people have grown dull. Their ears are hard of hearing, and their eyes they have
closed, Lest they should see with their eyes and hear with their ears, Lest they should understand
with their hearts and turn, so that I should heal them. But blessed are your eyes, because they
see; and your ears, because they hear. For truly I say to you that many prophets and righteous
men desired to see what you see, and did not see it, and to hear what you hear, and did not hear
it." ( English Standard Version, Matthew 13:10-17) Those that heard and understood were able to
understand more as they heard and accepted more truth. The truth was there all along, but it was
hidden until they were ready to understand.
Bernard, E. (September 28, 2019). Abstraction, Encapsulation, and Information Hiding.
thecodekey.com
English Standard Version Bible. (2001). ESV Online. https://esv.literalworld.com/
My Reply:
Christian,
I found your discussion informative and creative. I liked the way you related OOP encapsulation
to both old and new testament stories. A few other stories in which information is hidden or not
fully explained are:
Among the sons of Israelite women was Moses:
It was here that Moses, then a baby, was placed in the water with his sister Miriam observing.
Pharaoh's daughter, upon receiving the infant, purchased the services of the mother to raise the
kid in exchange for financial compensation. It was therefore kept secret from the Pharaoh's
daughter and the Egyptians that Moses was raised by his own mother, Miriam. Miriam's students
had the information, and they kept it secret from the Egyptians. This is a classic case of
encapsulation, and it is cited as such in the literature (Kynes, 2021).
Conflict at Jericho:
God instructs Joshua to march around Jericho once a day for six days, then seven times on the
seventh, while shouting and blowing trumpets. This is described in Joshua 6. The ceremony
caused the walls of Jericho to collapse. Nothing is said about the walls' eventual collapse or how
exactly yelling and blowing trumpets would assist tear them down. The Israelites didn't question
why or how, they just did what they were taught (Torrance, 2019).
Salvation:
Jesus' sacrifice on the cross was intended to atone for the sins of his followers. The crimes of
Adam brought death to all people, while the righteous death of Jesus brought resurrection. How
exactly his death would atone for Christians' sins is left unsaid. The Bible (which functions like
an interface in computer programming) is the vehicle through which the knowledge that Jesus
Christ came to earth to die for our sins has been transmitted from generation to generation. As we
simply know that Jesus died for our sins but do not know the complete process of the eradication
of the sins, this is what encapsulation is.
References
Kynes, W. (Ed.). (2021). The Oxford Handbook of Wisdom and the Bible. Oxford University
Press.
Torrance, I. R. (2019). The Bible in Sixteenth-Century Scotland. The History of Scottish
Theology, Volume I: Celtic Origins to Reformed Orthodoxy, 160.
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help