What term is used for hiding the details of an object from the other parts of a program? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

What term is used for hiding the details of an object from the other parts of a program?

java

30th Oct 2019, 2:27 PM
EL MASSAOUQUI Mouaouia
EL MASSAOUQUI Mouaouia - avatar
5 Answers
+ 3
Mouaouia El Massaouqui Applying the term encapsulation using the private keyword before any function or attribute.
30th Oct 2019, 2:32 PM
Juan Debenedetti
Juan Debenedetti - avatar
+ 1
encapsulation
1st Nov 2020, 5:14 PM
Lawretta Ekwia Addai Yeboah
Lawretta Ekwia Addai Yeboah - avatar
0
Encapsulation
1st Jan 2022, 8:36 AM
M.I.M.Aqueel
M.I.M.Aqueel - avatar
- 1
Like what Juan Debenedetti said you can use the private keyword, but do know that private only allows the class its defined in to access it, you could use the protected keyword as well. Protected variables and methods allow the class itself to access them, classes inside of the same package to access them, and subclasses of that class to access them.
30th Oct 2019, 3:25 PM
Odyel
Odyel - avatar
- 2
Encapsulation
4th Jun 2020, 8:02 PM
BENNETH ATTAMAH
BENNETH ATTAMAH - avatar