正在加载图片...
冈下州 10- class Except2 extends Exception{/定义Except22异常 private String the Message; public Except2(String aMsg){ theMessage aMsg; public String toString(){ return“Except22”+theMessage;}10-7 Programming in Java class Except2 extends Exception {//定义Except2异常 private String theMessage; public Except2(String aMsg) { theMessage = aMsg; } public String toString() { return “Except2” + theMessage; } 示例(2)
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有