事实上,重写是发现和纠正一些错误的最好方法,如语法和拼写错误。
In fact, rewriting is the best way to find out and correct some mistakes, like grammar and spelling mistakes.
当子类所重写的方法被调用时,你可以在子类中对父类的内部状态进行操作。
In a subclass you can make assumptions about the internal state of the superclass when the method you override is getting called.
被重写的click方法会增加count。
应用推荐