题目内容

设i , j为类X中定义的double型变量名,下列X类的构造方法中不正确的是( )

A. double X(double k ){ i=k; return i; }
B. X( ){i=6;j=8; }
C. X(double m, double n){ i=m; j=n; }
D. X(double k ){ i=k; }

查看答案
更多问题

构造方法是类中的一种特殊方法,它用来定义对象的

What is a portfolio?

What are the criteria for assessing pupil’s portfolios?

What can be included in a portfolio?

答案查题题库