Computer Science, asked by jayshree7683, 2 months ago

15. Which of this access specifies can be used for a class so that its members can be accessed by a different class in the same package?

Answers

Answered by yogitataral
0

Answer:

The private modifier specifies that the member can only be accessed in its own class. The protected modifier specifies that the member can only be accessed within its own package and, in addition, by a subclass of its class in another package.

Similar questions