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;但還可以有其他的代碼