Ask Question
18 November, 11:52

Check the true statement (s) (There is at least one correct choice, possibly more.)

a. A static method can access a static member (of the same class) inside its definition using only the member name, no object or class name prepended (i. e., without ClassName:: or someObj. in front).

b. A static method can access an instance member (of the same class) inside its definition using only the member name, no object or class name prepended (i. e., without someObj. in front).

c. An instance method can access a static member (of the same class) inside its definition using only the member name, no object or class name prepended (i. e., without ClassName:: or someObj. in front).

d. An instance method can access a static member (of the same class) inside its definition using only the member name, no object or class name prepended (i. e., without ClassName:: or someObj. in front).

+4
Answers (1)
  1. 18 November, 15:38
    0
    A

    Explanation:

    Static Methods can access static class variables without using object (instance) of the class, however non-static methods and non-static variables can only be accessed using objects
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “Check the true statement (s) (There is at least one correct choice, possibly more.) a. A static method can access a static member (of the ...” 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