I set up the compiler so I have to specify the override annotation so as to clarify which methods are overriding base class methods.
我对编译器进行了设置,所以我必须指定override注释,以便指明哪些方法要覆盖基类的方法。
Here I subclass ExprEditor in my own VerboseEditor, overriding three of the base class methods — all named edit , but with different parameter types.
这里我在自己的VerboseEditor中派生了ExprEditor子类,重写了三个基本的类方法——它们的名字都是edit,但是有不同的参数类型。
Overriding the base URI with XML: base.
用xml: base重写基本uri。
应用推荐