單項選擇題

有一個類Demo,對與其構(gòu)造方法的正確聲明是()

A.void Demo(int x){…}
B.Demo(int x){…}
C.Demo Demo(int x){…}
D.int Demo(){}

微信掃碼免費搜題