多选题
Static methods have access to which of the following? (Choose all that apply.)
A. Static variables
B. Instance variables
C. Standard methods
D. Static Methods
E. None of the above
A
B
C
D
E
【正确答案】
A、D
【答案解析】
静态方法只能访问其他的静态方法和静态变量。B、C和E不正确。B和C不正确,因为静态方法不能访问与类实例相关的数据。
提交答案
关闭