文件名称:static-modifier
介绍说明--下载内容均来自于网络,请自行研究使用
编写一个类Teacher,描述教师的课时数量和计算课时的系数,均为double类型。Teacher类还有一个方法,courseCompute(),可计算教师的当量课时(课时量*系数),返回值类型为double,所有教师的课时系数相同。
编写一个测试类进行测试。
创建两个教师对象,计算的系数为1.2,输出计算后的两位老师的当量课时。
将系数修改后,输出修改后的当量课时。
-Write a class Teacher, describe the number of hours and hours of computing coefficients teachers are double type. Teacher class also has a method, courseCompute (), calculate the equivalent class teacher (the amount of hours* coefficient), the return value of type double, the same class coefficients of all teachers. Write a test class for testing. Teachers create two objects coefficient was calculated to be 1.2, the output of the calculated equivalent of two teachers lessons. After the modification coefficient, the equivalent output of the modified class.
编写一个测试类进行测试。
创建两个教师对象,计算的系数为1.2,输出计算后的两位老师的当量课时。
将系数修改后,输出修改后的当量课时。
-Write a class Teacher, describe the number of hours and hours of computing coefficients teachers are double type. Teacher class also has a method, courseCompute (), calculate the equivalent class teacher (the amount of hours* coefficient), the return value of type double, the same class coefficients of all teachers. Write a test class for testing. Teachers create two objects coefficient was calculated to be 1.2, the output of the calculated equivalent of two teachers lessons. After the modification coefficient, the equivalent output of the modified class.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
static modifier.txt