String PC; double YanZhi;//99 void OuBa(double y) { YanZhi += y; System.out.println("原先颜值:"+y+"升级后的颜值:"+YanZhi); }
Car AO = new Car(); AO.PC = "小帅哥"; System.out.println("PC="+AO.PC); AO.OuBa(99); System.out.println("PC="+AO.PC+",升级后="+AO.YanZhi);
时间: 2024-10-12 17:02:22