class TestAB { public static void main(String[] args) { A myA = new A(); B myB = new B(8); System.out.print(myA.method()); System.out.print(myB.method()); System.out.print(myB.newMethod()); System.out.print(myB.getCount()); } }