Make more accurate description

This commit is contained in:
Andrew-liu
2016-04-12 23:52:34 +08:00
parent 57b8043440
commit c78964131f
2 changed files with 2 additions and 2 deletions

View File

@@ -3,7 +3,7 @@
## interface
Go语言里面设计最精妙的应该算interface它让面向对象内容组织实现非常的方便当你看完这一章你就会被interface的巧妙设计所折服。
### 什么是interface
简单的说interface是一组method的组合我们通过interface来定义对象的一组行为。
简单的说interface是一组method签名的组合我们通过interface来定义对象的一组行为。
我们前面一章最后一个例子中Student和Employee都能SayHi虽然他们的内部实现不一样但是那不重要重要的是他们都能`say hi`