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


    Question

    In C++, which feature allows hiding the internal details

    of a class?
    A Polymorphism Correct Answer Incorrect Answer
    B Abstraction Correct Answer Incorrect Answer
    C Inheritance Correct Answer Incorrect Answer
    D Encapsulation Correct Answer Incorrect Answer
    E Friend function Correct Answer Incorrect Answer

    Solution

    Encapsulation bundles data and methods, hiding internal details from outside access.

    Practice Next
    ask-question
    9