mirror of
https://github.com/unknwon/the-way-to-go_ZH_CN.git
synced 2025-08-12 05:33:04 +08:00
联系替换未练习,修正文字错误 (#264)
This commit is contained in:
@@ -582,7 +582,7 @@ func main() {
|
|||||||
|
|
||||||
**练习 10.9** point_methods.go:
|
**练习 10.9** point_methods.go:
|
||||||
|
|
||||||
从 `point.go` 开始(第 10.1 节的联系):使用方法来实现 `Abs()` 和 `Scale()`函数,`Point` 作为方法的接收者类型。也为 `Point3` 和 `Polar` 实现 `Abs()` 方法。完成了 `point.go` 中同样的事情,只是这次通过方法。
|
从 `point.go` 开始(第 10.1 节的练习):使用方法来实现 `Abs()` 和 `Scale()`函数,`Point` 作为方法的接收者类型。也为 `Point3` 和 `Polar` 实现 `Abs()` 方法。完成了 `point.go` 中同样的事情,只是这次通过方法。
|
||||||
|
|
||||||
**练习 10.10** inherit_methods.go:
|
**练习 10.10** inherit_methods.go:
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user