πŸ“’ Too many exams? Don’t know which one suits you best? Book Your Free Expert πŸ‘‰ call Now!

  • google app store apple app store
  • βœ–

      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
      ask-question