Skip to content

Commit

Permalink
Merge pull request lingcoder#263 from LingCoder/sjsdfg-patch-2
Browse files Browse the repository at this point in the history
Update 10-Interfaces.md
  • Loading branch information
sjsdfg authored Sep 24, 2019
2 parents 01ad436 + bcb69e5 commit 4aca12b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/book/10-Interfaces.md
Original file line number Diff line number Diff line change
Expand Up @@ -1100,7 +1100,7 @@ class ActionCharacter {
class Hero extends ActionCharacter implements CanFight, CanSwim, CanFly {
public void swim() {}

pubilc void fly() {}
public void fly() {}
}

public class Adventure {
Expand Down Expand Up @@ -1211,7 +1211,7 @@ public class HorrorShow {
}
```

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

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

Expand Down

0 comments on commit 4aca12b

Please sign in to comment.