更新时间:2022-05-22 21:47:56
你不能覆盖静态方法。
子类可以命名与超类相同的静态方法,但是 super
是一个非静态运算符。
你可以有多个方法执行两个不同的功能,但是它们需要不同的名字。
You cannot override an static method.
A subclass may name a static method the same as that of the superclass, however super
is a non-static operator.
You could have multiple methods which perform two different functions, but they would need different names.