摘要: 先创建一个父类Animal类: public class Animal{ public void move(){ System.out.println("动物可以移动"); } } 创建子类Cat类: public class Cat extends Animal{ public void move 阅读全文
posted @ 2021-01-03 11:16 homle 阅读(386) 评论(0) 推荐(0) 编辑