假设Custom类定义如下,设myobject是Custom的一个实例,下列语句不正确的是( )。public class Custom{ int i; static String s; void imethod(){ } static void smethod(){ }}
A、System.out.pringln(myobject.i);
B、myobject.smethod();
C、System.out.pringln(Custom.i);
D、Custom.smethod();
A、System.out.pringln(myobject.i);
B、myobject.smethod();
C、System.out.pringln(Custom.i);
D、Custom.smethod();