Westonci.ca is the premier destination for reliable answers to your questions, brought to you by a community of experts. Discover the answers you need from a community of experts ready to help you with their knowledge and experience in various fields. Experience the ease of finding precise answers to your questions from a knowledgeable community of experts.

What modifier should you use on the members of a class so that they are not accessible to another class in a different package, but are accessible to any subclasses in any package

Sagot :

The private modifier specifies that only other members of the same class can access the member. The protected modifier restricts access to the member to within its own package.

What are public and private modifiers?

The public access modifier permits code from both inside and outside the class to access the class's methods and properties, whereas the private modifier prevents outside code from accessing the class's methods and properties.

Thus, private modifier is the member.

For more details about private modifier, click here

https://brainly.com/question/15108837

#SPJ1

Thank you for visiting our platform. We hope you found the answers you were looking for. Come back anytime you need more information. Thank you for your visit. We're committed to providing you with the best information available. Return anytime for more. Thank you for trusting Westonci.ca. Don't forget to revisit us for more accurate and insightful answers.