【单选题】给出下面的代码段: public class Cell{ int row; int col; int height; int width; public Cell(int row,int col){ this.row=row;this.col=col; } public Cell(int row,int col,int height,int width){ <插入代码> this.height=height; this.width=width; } } 在<插入代码>处写下如下代码,正确的是:
A.Cell(row,col);
B.super(row,col);
C.this.row=row,this.col=row;
D.this(row,col);
答案
编译时将产生错误
更多“【单选题】给出下面的代码段: public class Cell{ int row; int col; int height; int width; public Cell(int row,int c…”相关的问题
第1题
下面的代码段中,执行之后i的值是______,j 的值是6。 int i = 5; int j; j = ++i;