鸟笼

是飞出鸟笼还是在其中终老

常用链接

统计

最新评论

2006年12月14日 #

子类方法覆盖父类方法

当父类方法有异常抛出的时候子类覆盖此方法不需要也抛出异常

import java.io.*;
class Base{
public static void amethod()throws FileNotFoundException{}
}

 

public class Sub extends Base {
 
 public static void amethod(){;}
 
 public static void main(String[] args) {

 }

}

posted @ 2006-12-14 14:42 由页 阅读(302) | 评论 (0)编辑 收藏