Skip to content

Commit 54caeb7

Browse files
authored
Update 10-Interfaces.md
lingcoder#229
1 parent 5e7b50a commit 54caeb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/book/10-Interfaces.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ secondMethod
422422
newMethod
423423
```
424424

425-
尽管 **Implementation2** 中定义 `newMethod()`,但是可以使用 `newMethod()` 了。
425+
尽管 **Implementation2** 中未定义 `newMethod()`,但是可以使用 `newMethod()` 了。
426426

427427
增加默认方法的极具说服力的理由是它允许在不破坏已使用接口的代码的情况下,在接口中增加新的方法。默认方法有时也被称为*守卫方法**虚拟扩展方法*
428428

0 commit comments

Comments
 (0)