1030自主学習
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(getName() + "はドッグフードを食べました。");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user