日韩欧美亚洲 _ 欧美亚洲一区 _ 日本亚洲欧美 _ 亚洲精品欧美 国产白袜脚足J棉袜在线观看_亚洲熟妇av一区二区三区_久久天天躁狠狠躁夜_精品众筹模特私拍在线

單項選擇題

在J2EE中,對于簡單屬性的方法:
public Color getColor(){…} 和public Void setColor(Color c){…}
假定color是類中的屬性,在方法體內(nèi)可以() 

A.  在getColor方法體內(nèi)只能有一行代碼:return color; 在setColor方法體內(nèi)只能有一行代碼: this.color=c;
B.  在getColor方法體內(nèi)只能有一行代碼:return color; 在setColor方法體內(nèi)一定有該行代碼: this.color=c;但還可以有其他的代碼
C.  在getColor方法體內(nèi)一定有該行代碼:return color; 但還可以有其他的代碼, 在setColor方法體內(nèi)只能有該行代碼: this.color=c;
D.  在getColor方法體內(nèi)一定要有該行代碼:return color; 但還可以有其他的代碼,在setColor方法體內(nèi)一定有該行代碼: this.color=c;但還可以有其他的代碼

微信掃碼免費搜題