aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
Multiple choice technology web technology

We would like to make a member of a class visible in all subclasses regardless of what package they are in. Which one of the following keywords would achieve this?

  1. private

  2. 0

  3. c. private OR protected

  4. d. protected

Reveal answer Fill a bubble to check yourself
C Correct answer

Keep practicing — related questions

  • The use of protected keyword to a member in a class will restrict its visibility as follows
  • The use of protected keyword to a member in a class will restrict its visibility as follows:
  • Which keyword can protect a class in a package from accessibility by the classes outside the package
  • Which keyword can protect a class in a package from accessibility by the classes outside the package?
  • You want subclasses in any package to have access to members of a superclass. Which is the most restrictive...
  • You want subclasses in any package to have access to members of a superclass. Which is the most restrictive...
  • Which of the following modifiers in Java is visible to packages and all its subclasses?
  • You want a subclass in any package to have access to members of a superclass. Which is the most restrictive...
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy