A-A+

已知有下面的类说明: pubic class Test4 { private float f

2022-08-06 02:50:18 问答库 阅读 175 次

问题详情

已知有下面的类说明: pubic class Test4 { private float f=0f; int m=12; static int n=1; public static void main(String args[]) { Test4 e=new Test4(); } } 在main()方法中,下面()使用是正确的。
A.e.f
B.this.n
C.Test4.m
D.Test4.f请帮忙给出正确答案和分析,谢谢!

参考答案

正确答案:A

考点: