Ask Question
11 December, 14:31

Which access modifier explicitly says that a method or variable of an object can be accessed by code from outside of the class of that object?

(A) private

(B) public

(C) default

(D) static

+1
Answers (1)
  1. 11 December, 15:30
    0
    B

    Explanation:

    public access specifier is used to access the objects outside the class. if it is private we can not access that outside the class. Public is useful when you want to expose some data which is useful to the user and private is used to hide the confidential data from the user
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Which access modifier explicitly says that a method or variable of an object can be accessed by code from outside of the class of that ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers