Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

第三章 函数重载应改为函数重写 #333

Open
tzm1119 opened this issue Jan 10, 2023 · 1 comment
Open

第三章 函数重载应改为函数重写 #333

tzm1119 opened this issue Jan 10, 2023 · 1 comment
Labels
其他问题 其他问题描述
Milestone

Comments

@tzm1119
Copy link

tzm1119 commented Jan 10, 2023

页码与行数

  • 第63页
  • 原文是,为不同类型实现trait,属于一种函数重载

参考: 函数的重载、重写和重定义简述

函数重载是指 函数名相同,但是参数不同,这些函数之间构成重载
但为不同struct实现同一个trait,属于同一个函数,相同的参数,但有不同的实现,这些函数之间应该是重写

@ZhangHanDong
Copy link
Owner

感谢反馈。文中本意也是 override,中文翻译的问题。第二版再改进吧。

@ZhangHanDong ZhangHanDong added this to the 第二版 milestone Jan 11, 2023
@ZhangHanDong ZhangHanDong added the 其他问题 其他问题描述 label Jan 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
其他问题 其他问题描述
Projects
None yet
Development

No branches or pull requests

2 participants