public double getMath() { return math; }
public void setMath(double math) { this.math = math; }
public double getEnglish() { return english; }
public void setEnglish(double english) { this.english = english; }
public double getTotalPoints() { return totalPoints; }
public void setTotalPoints(double totalPoints) { this.totalPoints = totalPoints; }
public int getStuNumber() { return stuNumber; }
public void setStuNumber(int stuNumber) { this.stuNumber = stuNumber; }
public String getStuName() { return stuName; }
public void setStuName(String stuName) { this.stuName = stuName; }
public BinaryNode getLeftChild() { return leftChild; }
public void setLeftChild(BinaryNode leftChild) {
10
this.leftChild = leftChild; }
public BinaryNode getRightChild() { return rightChild; }
public void setRightChild(BinaryNode rightChild) { this.rightChild = rightChild; }
public BinaryNode getParent() { return parent; }
public void setParent(BinaryNode parent) { this.parent = parent; }
@Override
public String toString() {
return \学号=\ + stuNumber + \姓名=\ + stuName + \数学分数=\ + math + \英语分数=\ + english + \总分=\ + totalPoints + ']'; } }
11
(3)测试
① 插入功能模块的数据输入及结果(可以用程序运行结果的截图)
12
13
② 删除功能模块的数据输入及结果
14
15