报告直接扩展 java.lang.Thread 的类。 通常建议使用复合而不是继承来创建更便于日后修改的可重用代码。

示例:


  class MainThread extends Thread {
  }