摘要:
存档: index.php form.class.php shape.class.php result.class.php rect.class.php triangle.class.php circle.class.php 结果如下: 阅读全文
posted @ 2018-01-30 17:56
Angel_Kitty
阅读(1146)
评论(0)
推荐(0)
摘要:
Java构造方法 类有一个特殊的成员方法叫作构造方法,它的作用是创建对象并初始化成员变量。在创建对象时,会自动调用类的构造方法。构造方法定义规则:Java 中的构造方法必须与该类具有相同的名字,并且没有方法的返回类型(包括没有void)。另外,构造方法一般都应用 public 类型来说明,这样才能在 阅读全文
posted @ 2018-01-30 08:52
Angel_Kitty
阅读(1735)
评论(0)
推荐(1)

浙公网安备 33010602011771号