多项选择题
A.覆盖的方法和被覆盖的方法必须具有相同的方法名、参数列表和返回类型 B.覆盖的方法的访问范围不能比被覆盖的方法访问范围小 C.覆盖的方法不能抛出被覆盖方法不能抛出的异常 D.被覆盖的方法不能被private修饰符修饰
A.public float getNum(){return 4.0f;} B.public void getNum(){} C.public void getNum(double d){} D.public double getNum(floatd){return 4.0;}
A.void method(){} B.int method(){return0;} C.void method(inti) D.private void method()