Computer Science, asked by purnasripodila, 11 days ago

JAVA
In a class, an attribute needs to be accessed from any class in that application. What should be the access specifier for that attribute?

Answers

Answered by ZuhairZeiter
5

Explanation:

When we use public modifier there is no restriction to the visibility of a method or attribute. A method or attribute with this modifier can be accessed from any other class in our app. For Example:

I hope you found this explanation helpful!

Attachments:
Answered by lokeshbala61
5

Answer:

it is an public modifier

Explanation:

---

Similar questions