Merge commit 'eb456360014ebc7558ccf716bd15cf3f6fe81548' into ja

This commit is contained in:
Shin Kojima
2014-09-21 21:49:25 +09:00

View File

@@ -142,7 +142,7 @@ interface类型定义了一组方法如果某个对象实现了某个接口
mike := Student{Human{"Mike", 25, "222-222-XXX"}, "MIT", 0.00}
paul := Student{Human{"Paul", 26, "111-222-XXX"}, "Harvard", 100}
sam := Employee{Human{"Sam", 36, "444-222-XXX"}, "Golang Inc.", 1000}
Tom := Employee{Human{"Sam", 36, "444-222-XXX"}, "Things Ltd.", 5000}
Tom := Employee{Human{"Tom", 37, "222-444-XXX"}, "Things Ltd.", 5000}
//定义Men类型的变量i
var i Men