質問編集履歴
1
インターフェースを追加しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -34,7 +34,23 @@
|
|
34
34
|
|
35
35
|
```java
|
36
36
|
|
37
|
+
public interface Shipping{
|
38
|
+
|
39
|
+
String info();
|
40
|
+
|
41
|
+
int shipping();
|
42
|
+
|
43
|
+
int handling();
|
44
|
+
|
45
|
+
}
|
46
|
+
|
47
|
+
```
|
48
|
+
|
49
|
+
|
50
|
+
|
51
|
+
```java
|
52
|
+
|
37
|
-
public class Fruit extends Content{
|
53
|
+
public class Fruit extends Content implements Shipping{
|
38
54
|
|
39
55
|
private int size;
|
40
56
|
|
@@ -138,7 +154,7 @@
|
|
138
154
|
|
139
155
|
```java
|
140
156
|
|
141
|
-
public class Vegetable extends Content{
|
157
|
+
public class Vegetable extends Content implements Shipping{
|
142
158
|
|
143
159
|
|
144
160
|
|