可以通过implements来实现某个接口
可以通过匿名内部类的方式,比如
Thread thread=new Thread(new Runnable() { public void run() { } });