摘要: 阅读全文
posted @ 2022-12-13 22:28 wwwwwhl 阅读(18) 评论(0) 推荐(0)
摘要: public class Cart{ public static void main(String[] args){ Car c = new Car(); c.name = "拖拉机"; c.price = 516466.00; c.start(); c.run(); Car c2 = new Ca 阅读全文
posted @ 2022-12-13 22:20 wwwwwhl 阅读(18) 评论(0) 推荐(0)
摘要: public class Car{ String name; duoble price; public void start(){ System.out.println(name+"价格是"+price+"我已经开始了!"); } public void run(){ System.out.prin 阅读全文
posted @ 2022-12-13 22:14 wwwwwhl 阅读(19) 评论(0) 推荐(0)