What is the purpose of using encapsulation in object-oriented programming?
A. To hide the internal details of an object and provide a controlled way to access and modify its attributes
B. To simplify syntax
C. To create complex objects
D. To promote code reusability
Answer: Option A

Join The Discussion