You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

312 B

实验目的

1.掌握 Java 封装思想,使用 private 修饰属性,通过 getter/setter 访问。

2.练习构造方法重载与 this() 调用。

3.学会在 setter 和业务方法中做数据合法性校验。

4.练习静态变量与静态方法实现全局统计。

5.编写测试类验证类功能。