标签:override nbsp 云上 测试用例 类图 java equals tostring ble
任务:以TDD的方式开发一个复数类Complex,要求如下: // 定义属性并生成getter,setter double RealPart; double ImagePart; // 定义构造函数 public Complex() public Complex(double R,double I) //Override Object public boolean equals(Object obj) public String toString() // 定义公有方法:加减乘除 Complex ComplexAdd(Complex a) Complex ComplexSub(Complex a) Complex ComplexMulti(Complex a) Complex ComplexDiv(Complex a)
2017-2018-2 20165234 实验二 《Java面向对象程序设计》实验报告
标签:override nbsp 云上 测试用例 类图 java equals tostring ble
原文地址:https://www.cnblogs.com/IconicV/p/8855467.html