public class ClassB extends ClassA { public void print(int x) { System.out.println(x); } }