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


    Question

    Which access modifier restricts access to a class member

    only within the class itself and its derived classes?
    A Public Correct Answer Incorrect Answer
    B Private Correct Answer Incorrect Answer
    C Protected Correct Answer Incorrect Answer
    D Default (package-private) Correct Answer Incorrect Answer
    E Internal Correct Answer Incorrect Answer

    Solution

    Protected

    Practice Next
    More Object Oriented Programming Questions
    ask-question