こんなん
abstract class A { abstract void x(); protected void y() { x(); System.out.println("class A method y"); } } class B extends A { protected void x() { System.out.println("class B method x"); } public static void main(String args[]) { B b = new B(); b.y(); } }
$ java B
class B method x
class A method y
参考:
子供
http://www.docjar.com/html/api/org/apache/xml/serialize/XMLSerializer.java.html
親
http://www.docjar.com/html/api/org/apache/xml/serialize/BaseMarkupSerializer.java.html