Ask 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 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).

+5
Answers (1)
  1. 21 February, 20:50
    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 & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers