要声明类Point的构造方法,下面正确的是()

3 查阅

要声明类Point的构造方法,下面正确的是()

A.intPoint(){}

B.Point(intx){}

C.voidpoint(intx){}

D.point(intx){}

参考答案:

答案:A

知识竞赛