Description: Stu class declaration. Properties include the student number, name, English scores, math scores, computer score and total score. Method includes the construction method, get method, set method, toString method, equals method, compare method (compare the overall performance of two students, the results are greater than, less than, equal to), sum method (Calculation of total score) and testScore methods ( computing performance evaluation, an average of results).
Statement StuXW (learning members) class as a subclass of Student. Increased responsibility in StuXW class attributes, and override testScore method makes learning members of the evaluation results for the average grade of+3 points.
Statement StuBZ (monitor) class as a subclass of Student. Increased responsibility in StuXW class attributes, and override testScore method makes squad leader of the evaluation results for the average grade of+5 points.
Statement on the polymorphism test class to complete the test:
Declared in
To Search:
File list (Check if you may need any files):
StuTest.java