题海让大学四年没有难题
白天模式登陆

题目详情

单选题 下列【1】、【2】、【3】、【4】注释标注的哪行代码有错误?( ) class Cat { int leg; static int water; void setLeg(int leg) { this.leg = leg; //【1】 this.water = 100; //【2】 } static void setWater(int water) { this.water = water; //【3】 Cat.water = water; //【4】 } }

A. 【3】

B. 【4】

C. 【1】

D. 【2】

学科:默认课程

时间:2025-12-09 15:04:23

Copyright © 2022 津ICP备2021001502号