package cn.edu.bjut.chapter4; class ClassA { int a = 20; } class ClassB extends ClassA { int a = 30; public void print() { System.out.println(a + "\t" + super.a); } } public class PropertyHiddenTester { public static void main(String[] args) { ClassB classB = new ClassB(); classB.print(); } }