搜题
问题   更新时间2023/11/20 20:51:00

以下程序的输出结果为_________________。。 publiccclasssTomm{{{privateefloattweight;;;privateestaticcStringgname;; publiccvoiddsetWeight(floattweight)){{{{this.weightt==weight;;;}} privateevoiddout()){{ System.out.println(namee++"体重:""++weightt++"斤");;;}} publiccstaticcvoiddmain(String[]]args)){{{{Tom.namee=="汤姆猫";;;;Tommcatt==newwTom();;;;cat.setWeight(20);;;;cat.out();;;}}

汤姆猫体重:20.0斤
王老师:19139051760(拨打)