为AB类的一个无形式参数无返回值的方法method书写方法头,使得使用类名AB作为前缀就可以调用它,该方法头的形式为下面哪一个?
A.staticvoidmethod()
B.publicvoidmethod()
C.finalvoidmethod()
D.abstractvoidmethod()
正确答案:A
猜你喜欢