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


    Question

    How does abstraction contribute to code

    maintainability?
    A By making all data public. Correct Answer Incorrect Answer
    B By reducing the number of classes. Correct Answer Incorrect Answer
    C By allowing changes to internal implementation without affecting external code that uses the abstraction. Correct Answer Incorrect Answer
    D By forcing all methods to be static. Correct Answer Incorrect Answer
    E By eliminating the need for comments. Correct Answer Incorrect Answer

    Solution

    Abstraction creates a clear separation between the interface (what is exposed) and the implementation (how it works). This means that internal changes to the implementation can be made without breaking client code, as long as the interface remains consistent.

    Practice Next
    ask-question