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
Art,
5 days ago
Math,
11 days ago
Social Sciences,
11 days ago
Math,
7 months ago
Science,
7 months ago