摘要: public class Test { public static void main(String[] args) { Car c = new Car(); c.name = "大众"; c.price = 76876.00; c.start(); c.run(); Car c2 = new Ca 阅读全文
posted @ 2022-10-09 11:10 鱼凉 阅读(22) 评论(0) 推荐(0)
摘要: public class Car { String name ; double price; public void start(){ System.out.println(name + ",价格是" + price +"我已经开始了!"); } public void run(){ System. 阅读全文
posted @ 2022-10-09 11:09 鱼凉 阅读(29) 评论(0) 推荐(0)