Mark As Completed Discussion

Try this exercise. Click the correct answer from the options.

What is the purpose of encapsulation in object-oriented programming (OOP)?

Click the option that best answers the question.

  • To hide internal implementation details of a class
  • To provide controlled access to class members
  • To enhance security, reliability, and maintainability of code
  • All of the above