An interface is implemented by either class or struct inheritance. A struct isn't
appropriate in this case: We don't expect to be creating and manipulating lots of Fibonacci objects in time-critical portions of the application. We'll declare Fibonacci as a class then.Because we do not expect it to be subsequently derived from, we'll declare it to be sealed as well:
public sealed class Fibonacci : INumericSequence {}我看了,翻译没有问题,只是理解上有问题,大家说说自己得理解吧
appropriate in this case: We don't expect to be creating and manipulating lots of Fibonacci objects in time-critical portions of the application. We'll declare Fibonacci as a class then.Because we do not expect it to be subsequently derived from, we'll declare it to be sealed as well:
public sealed class Fibonacci : INumericSequence {}我看了,翻译没有问题,只是理解上有问题,大家说说自己得理解吧
解决方案 »
- 怎么把字典集合数据绑定到DataGridView中
- 急急急!!!用JQERY调用C#(ajax),调试时可以执行,发布后却不执行。。。
- ActiveReports 页码设置问题..在线等...
- 怎样不显示Form里的那个X?
- winform打开窗体问题
- 网络中断时怎么处理?谢谢
- 菜鸟求.!请GGJJ来解惑.
- 紧急求助:写一个递归算法求出某个目录下的文件夹的个数,谢谢大家了
- 调试的时候出现这个错误:“命名空间不直接包含诸如字段或方法之类的成员”,请各位大侠帮帮忙,告诉我原因!
- 急,请问如何将一个html文件作为资源嵌入到一个Windows程序中?
- WebException超时,有什么测试工具可以发现到底出了什么问题?
- 那位大哥能讲一下MapX!!!
所以说在本例(Fibonacci数),class 比 struce 效率要高。
还是不太明白,请明示to cysoft:
管闲是理解,翻译都差不多