Cannot make a static reference to the non-static field静态方法中不能引用非静态成员变量及方法class A { private int a = 1; public sttaic vo
Cannot make a static reference to the non-static field
静态方法中不能引用非静态成员变量及方法
class A { private int a = 1; public sttaic void main(String[] args){ System.out.println(a); }}
--结束END--
本文标题: 详谈Java静态动态的问题
本文链接: https://www.lsjlt.com/news/223269.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
下载Word文档到电脑,方便收藏和打印~
2024-05-16
2024-05-16
2024-05-16
2024-05-16
2024-05-16
2024-05-16
2024-05-16
2024-05-16
2024-05-16
2024-05-16
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0