多項選擇題在Java接口中,下列選項中有效的方法聲明是()。

A.public void aMethod();
B.void aMethod();
C.protected void aMethod();
D.private void aMethod();


您可能感興趣的試卷