摘要: 1.现实世界中的对象:状态和行为 对象:电动车 状态:扭油门 没扭油门 行为:加速 减速2.根据对象编写类 class Electric vehicle { int accelerator = 0; int speed = 0; int gear = 1; void change accelerat 阅读全文
posted @ 2022-09-23 14:25 墨圆 阅读(33) 评论(0) 推荐(0)