package市场商铺信息表import com.sun.source.tree.NewArrayTree public class marketshopsinformation public static void main String args Fruitstore p new Fruitstore创建水果店对象给水果店商品赋值p.Fruits火龙果p.price9.9获取水果店对象中的值System.out.println p.FruitsSystem.out.println p.price调用水果店中的方法p.sellFruits创建面馆对象Noodlestore a new Noodlestore a.noodles红烧牛肉面