單項選擇題

選項中哪一行代碼可以替換題目中//add code here而不產(chǎn)生編譯錯誤?()

A.public abstract void method(int a);
B.constInt = constInt + 5;
C.public int method();
D.public abstract void anotherMethod() {}

微信掃碼免費搜題