在线名词解释大全
专业、全面、易懂的全领域名词百科

有一个类Demo,对与其构造方法的正确声明是

题型:单选题
选项
A. void Demo(int x){…}
B. Demo(int x){…}
C. Demo Demo(int x){…}
D. int Demo(){}
正确答案:B