请问这个说法为什么不对呢?
When a class implements an interface, it can define as many methods of the interface as needed.请问这个说法为什么不对呢? 
subclass inherits all methods ( including the constructor ) from the superclass.

解决方案 »

  1.   

    关于第二个问题,构造函数是不会被继承的,这意味者你必须在子类重新写构造函数,可以在子类中通过super()的形式来调用父类构造函数。
      

  2.   

    第一个问题: 当一个类(非抽象类)实现一个接口时, 不能根据需要来定义接口中的方法, 而必须全部定义. 所以不是can define as many methods of the interface as needed, 而是must define all the methods of the interface第二个问题: 如楼上所说, constructor不能被继承.