父类的重写方法
import java.util.*; public class Subclass extends Superclass {/** n o w j a v a . c o m 提 供 **/ public boolean aVariable; //hides aVariable in Superclass public void aMethod() { //overrides aMethod in Superclass aVariable = false; super.aMethod(); System.out.format("%b%n", aVariable); System.out.format("%b%n", super.aVariable); } } class Superclass { public