摘要:
面向对象 继承 继承的定义 type Father struct { lastName string relationship string } type Son struct { Father } 在golang中,没有关键字去声明Father 是Son 的父类。只需要在Son 里面进行声明即可 阅读全文
摘要:
Math Math 包含了用于执行基本数学运算的属性和方法,如初等指数、对数、平方根和三角函数。 Math 是一个final 类,不能被继承 Math 不能被实例化 方法和属性都被static 修饰 public final class Math { /** * Don't let anyone i 阅读全文