摘要:
1 package duoTai06; 2 3 public class Animal { 4 private String name; 5 private int age; 6 7 public Animal() { 8 } 9 10 public Animal(String name, int 阅读全文
posted @ 2021-02-22 19:53
找不到北的北
阅读(58)
评论(0)
推荐(0)
摘要:
1 package duoTai05; 2 3 public class Cat extends Animal{ 4 5 6 public void eat(){ 7 System.out.println("猫吃鱼"); 8 } 9 10 public void playGame(){ 11 Sys 阅读全文
posted @ 2021-02-22 19:51
找不到北的北
阅读(108)
评论(0)
推荐(0)
摘要:
1 package duoTai04; 2 3 public class Cat extends Animal { 4 5 @Override 6 public void eat(){ 7 System.out.println("猫吃鱼"); 8 } 9 10 public void playGam 阅读全文
posted @ 2021-02-22 19:49
找不到北的北
阅读(83)
评论(0)
推荐(0)