实验九:异常的抛出、捕获并处理
摘要:一.程序代码 package error; public class Throwerror { public static void main(String[] args) throws IllegalArgumentException { Point point1=new Point (3,1);
阅读全文
posted @
2019-05-27 09:08
我是wyw
阅读(479)
推荐(0)
实验八 接口与实现接口的类
摘要:声明圆锥体类,实现Area和Volume接口,计算表面积和体积,按体积比较大小 一.程序代码 public class yuanzhui extends Rectangle implements Area,Volume { private double radius; private double
阅读全文
posted @
2019-05-19 12:10
我是wyw
阅读(410)
推荐(0)
实验七 类的多态
摘要:一.程序代码 package Students; public class Person { public String name; public String birthday; public String province,city; public int count; public Perso
阅读全文
posted @
2019-05-06 21:52
我是wyw
阅读(249)
推荐(0)