Ask Question
5 May, 17:56

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

+2
Answers (1)
  1. 5 May, 21:19
    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?
Get 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 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