在Java接口中,下列选项中有效的方法声明是()。
A:public void aMethod();
B:void aMethod();
C:protected void aMethod();
D:private void aMethod();
出自:计算机科学