Which two are benefits of fully encapsulating a class?

  1. Implementation details of the class are hidden.

  2. Access modifiers can be omitted on class data members.

  3. Internal operation of the class can be modified without impacting clients of that class.

  4. Code that uses the encapsulation class can access data members directly.

  5. Performance of class methods is improved.


Correct Option: A,C

Find more quizzes: