Navigation Menu

Skip to content

Commit

Permalink
Update type-of-object-interfaces.md
Browse files Browse the repository at this point in the history
更新超链接,使用 `%28`, `%29` 表示 `(`, `)`
  • Loading branch information
xcatliu committed Apr 18, 2018
1 parent badae95 commit 9775eee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion basics/type-of-object-interfaces.md
Expand Up @@ -24,7 +24,7 @@ let tom: Person = {

上面的例子中,我们定义了一个接口 `Person`,接着定义了一个变量 `tom`,它的类型是 `Person`。这样,我们就约束了 `tom` 的形状必须和接口 `Person` 一致。

接口一般首字母大写。[有的编程语言中会建议接口的名称加上 `I` 前缀](https://msdn.microsoft.com/en-us/library/8bc1fexb(v=vs.71).aspx)
接口一般首字母大写。[有的编程语言中会建议接口的名称加上 `I` 前缀](https://msdn.microsoft.com/en-us/library/8bc1fexb%28v=vs.71%29.aspx)

定义的变量比接口少了一些属性是不允许的:

Expand Down

0 comments on commit 9775eee

Please sign in to comment.