单选题:给出下列代码,如何使成员变量m被方法fun()直接访问? classTest { privateintm; public

  • 题目分类:Java
  • 题目类型:单选题
  • 查看权限:VIP
题目内容:
给出下列代码,如何使成员变量m被方法fun()直接访问?
classTest
{
privateintm;
publicstaticvoidfun()
{
...
}
} A.将privateintm改为protectedintm
B.将privateintm改为publicintm
C.将privateintm改为staticintm
D.将privateintm改为intm
参考答案:
答案解析:

图书馆对于( )相当于( )对于档案

图书馆对于( )相当于( )对于档案A.报刊档案袋 B.书籍学校 C.阅览室档案室 D.自习室档案馆

查看答案

下列方法中,不属于WindowListener接口的是

下列方法中,不属于WindowListener接口的是A.windowOpened() B.windowClosed() C.windowActivated()

查看答案

New Foods and the New World In the last 500 years, nothing a

New Foods and the New World In the last 500 years, nothing about people---not th

查看答案

The author attributes a soccer player’s success to all the f

The author attributes a soccer player’s success to all the following factors EXC

查看答案

In the last paragraph the statement “only one became Pele” i

In the last paragraph the statement “only one became Pele” indicates thatA.Pele

查看答案