Ask Question
15 January, 23:18

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

+4
Answers (1)
  1. 16 January, 02:21
    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?
Find 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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers