Skip to content

Commit 4aca12b

Browse files
authored
Merge pull request lingcoder#263 from LingCoder/sjsdfg-patch-2
Update 10-Interfaces.md
2 parents 01ad436 + bcb69e5 commit 4aca12b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/book/10-Interfaces.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1100,7 +1100,7 @@ class ActionCharacter {
11001100
class Hero extends ActionCharacter implements CanFight, CanSwim, CanFly {
11011101
public void swim() {}
11021102

1103-
pubilc void fly() {}
1103+
public void fly() {}
11041104
}
11051105

11061106
public class Adventure {
@@ -1211,7 +1211,7 @@ public class HorrorShow {
12111211
}
12121212
```
12131213

1214-
接口 **DangerousMonster****Monster** 简单扩展的一个新接口,类 **DragonZilla** 实现了这个接口。
1214+
接口 **DangerousMonster****Monster** 简单扩展的一个新接口,类 **DragonZilla** 实现了这个接口。
12151215

12161216
**Vampire** 中使用的语法仅适用于接口继承。通常来说,**extends** 只能用于单一类,但是在构建接口时可以引用多个基类接口。注意到,接口名之间用逗号分隔。
12171217

0 commit comments

Comments
 (0)