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
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
5
Answer:
it is an public modifier
Explanation:
---
Similar questions
Math,
1 month ago
Computer Science,
1 month ago
Math,
2 months ago
Social Sciences,
2 months ago
Math,
10 months ago
Science,
10 months ago