public class Child1 extends Parent { /** * Returns the String object "Child1". * * @return the String object "Child1". * */ public String getClassName() { return "Child1"; } // method getClassName } // class Child1