Find the best answers to your questions at Westonci.ca, where experts and enthusiasts provide accurate, reliable information. Get detailed and accurate answers to your questions from a dedicated community of experts on our Q&A platform. Join our Q&A platform to connect with experts dedicated to providing accurate answers to your questions in various fields.

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

We appreciate your time. Please revisit us for more reliable answers to any questions you may have. We hope this was helpful. Please come back whenever you need more information or answers to your queries. We're here to help at Westonci.ca. Keep visiting for the best answers to your questions.