📢 Too many exams? Don’t know which one suits you best? Book Your Free Expert 👉 call Now!


    Question

    What is a key benefit of

    encapsulation?
    A It allows direct modification of internal object state from anywhere. Correct Answer Incorrect Answer
    B It exposes all implementation details to the outside world. Correct Answer Incorrect Answer
    C It improves security by preventing unauthorized access to data and simplifies maintenance. Correct Answer Incorrect Answer
    D It reduces the need for classes and objects. Correct Answer Incorrect Answer
    E It enables runtime polymorphism. Correct Answer Incorrect Answer

    Solution

    It improves security by preventing unauthorized access to data and simplifies maintenance.

    Practice Next
    ask-question