面向对象 Productint spIDString spName double spPriceint spDescString spKucunString spTime thisspID=spID; thisspName=spName; thisspPrice=spPrice; thisspDesc=spDesc; thisspKucun=spKucun; thisspTime=sp
public String getInfo() { return "商品ID:" + spID + "\n商品名称:" + spName + "\n商品价格:" + spPrice + "\n商品描述:" + spDesc + "\n商品库存:" + spKucun + "\n商品上架时间:" + spTime; }
原文地址: https://cveoy.top/t/topic/hq0K 著作权归作者所有。请勿转载和采集!