Given:<>
Correct Answer:
D
Given the code fragment:<>
Correct Answer:
C
What is the name of the Java concept that uses access modifiers to protect variables and hide them within a class?
Correct Answer:
A
Using the private modifier is the main way that an object encapsulates itself and hide data from the outside world.
You are asked to develop a program for a shopping application, and you are given this information:
< > >< > >< > >>< >
Correct Answer:
A
Which statement best describes encapsulation?
Correct Answer:
A
