Solved

Which of the Following Statements About Encapsulation Is Correct

Question 92

Multiple Choice

Which of the following statements about encapsulation is correct?


A) To use encapsulation, you must provide a set of private methods in the class.
B) To use encapsulation, the class must contain only public methods in the class.
C) To use encapsulation, the implementation details must be public.
D) To use encapsulation, you must provide a set of public methods in the class and hide the implementation details.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions