What is encapsulation in Java?
A. Encapsulation is the ability of an object to take on many forms.
B. Encapsulation is a way to define a new class based on an existing class.
C. Encapsulation is the hiding of implementation details from users of a class.
D. None of the above.
Answer:C
What is encapsulation in Java?
A. Encapsulation is the ability of an object to take on many forms. B. Encapsulation is a way to define a new class based on an existing class. C. Encapsulation is the hiding of implementation details from users of a class. D. None of the above.