为什么静态字段应该以静态方式访问?

6 浏览
0 Comments

为什么静态字段应该以静态方式访问?

为什么我的 System.out.println(m.MILLSECONDS); 出现警告-The static field MyUnits.MILLSECONDS should be accessed in a static way ?

0