摘要: 两个代码结果不一样 public void mul(Complex other) { int r = this.real * other.real - this.image * other.image; int i = this.image * other.real + this.real * ot 阅读全文
posted @ 2021-10-13 19:27 kingwzun 阅读(697) 评论(0) 推荐(0) 编辑
摘要: static 静态成分 静态的成员变量-类变量 static修饰的成员属于类所有,是所有实例(对象)所共享的成员。 成员变量可以是任何变量(可以是另一个类) 引用 (推荐):类名称.变量名 (不推荐): 对象名称... 作用: 通常用来提供共享的数据或工具方法 如:Math.PI 静态的成员方法-类 阅读全文
posted @ 2021-10-13 14:11 kingwzun 阅读(141) 评论(0) 推荐(0) 编辑