From bcb69e55401657ffaea19dee5108b9a859bddac3 Mon Sep 17 00:00:00 2001 From: Joe <736777445@qq.com> Date: Tue, 24 Sep 2019 09:57:43 +0800 Subject: [PATCH] Update 10-Interfaces.md --- docs/book/10-Interfaces.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/book/10-Interfaces.md b/docs/book/10-Interfaces.md index a1f487a..10441b5 100644 --- a/docs/book/10-Interfaces.md +++ b/docs/book/10-Interfaces.md @@ -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 { @@ -1211,7 +1211,7 @@ public class HorrorShow { } ``` -接口 **DangerousMonster** 是 **Monster** 简单扩展的一个新接口,类 **DragonZilla** 实现了这个接口。 +接口 **DangerousMonster** 是 **Monster** 简单扩展的一个新接口,类 **DragonZilla** 实现了这个接口。 **Vampire** 中使用的语法仅适用于接口继承。通常来说,**extends** 只能用于单一类,但是在构建接口时可以引用多个基类接口。注意到,接口名之间用逗号分隔。