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 {}我看了,翻译没有问题,只是理解上有问题,大家说说自己得理解吧

解决方案 »

  1.   

    stract 创于栈上是值类型,而class创于堆上是引用类型。
    所以说在本例(Fibonacci数),class 比 struce 效率要高。
      

  2.   

    implemented这里最好不要理解成实现,使用或者是依靠,比较符合理解的习惯,上面说的对,这里的翻译是没有问题的,但是不符合理解习惯我是这么理解的:接口的使用需要通过 class 或者 struct 的继承来实现。
      

  3.   

    to  hdt(千金散近还复来,一给就是200分) struct{int i;}  在栈上,那么说明到程序超过使用区间,他会自动消亡class{public: int i;} 在堆上,那么说明由垃圾回收器来处理?
    还是不太明白,请明示to cysoft:
    管闲是理解,翻译都差不多