Question: What is encapsulation and how does Java implement it ? 8 a . Data ( fields ) can be hidden inside of an object using
What is encapsulation and how does Java implement it
a
Data fields can be hidden inside of an object using the static modifier.
b
Data fields can be hidden inside an object using the visibility modifier private.
c
Data fields are directly accessible by objects in the same package.
d
Data fields can be directly accessed by all code in all classes.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
