完了済
This commit is contained in:
6
Question13-Extends/src/main/java/Dog.java
Normal file
6
Question13-Extends/src/main/java/Dog.java
Normal file
@@ -0,0 +1,6 @@
|
||||
|
||||
public class Dog extends Animal {
|
||||
public void Eat() {
|
||||
System.out.println(this.getName()+"はドッグフードを食べました。");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user