把test.java救回来了
This commit is contained in:
+16
-16
@@ -1,16 +1,16 @@
|
||||
//Dog.java
|
||||
package Task1;
|
||||
|
||||
public class Dog extends Animal {
|
||||
public Dog() {
|
||||
super();
|
||||
}
|
||||
|
||||
public void shout() {
|
||||
System.out.println(String.format("%s发出汪汪叫", this.name));
|
||||
}
|
||||
|
||||
public void superShout() {
|
||||
super.shout();
|
||||
}
|
||||
}
|
||||
//Dog.java
|
||||
package Task1;
|
||||
|
||||
public class Dog extends Animal {
|
||||
public Dog() {
|
||||
super();
|
||||
}
|
||||
|
||||
public void shout() {
|
||||
System.out.println(String.format("%s发出汪汪叫", this.name));
|
||||
}
|
||||
|
||||
public void superShout() {
|
||||
super.shout();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user