override,Review Override by a SCJP Test Question

Below is a SCJP test question:

8、What will happen when you compile this program?

public class Test{

protected void start() throws ClassCastException{

//body omitted

}

}

 

class Child extends Test{

public void start() throws Exception{

//body omitted

}

}

Tags:  override

延伸阅读

最新评论

发表评论