下面程序是关于类的继承的用法。阅读下面程序,根据程序中的注释在每一条横线处填写一个语句,使程序的功能完整,且运行程序后的输出结果为: I am parentclass! I am childclass! I am childclass! 注意:请勿改动main()主方法和其他已有的语句内容,仅在下划线处填入适当的语句。 class Parent void printMe() System. out. println( "I am parentclass ! ");
class Child extends Parent void printMe() System. out. println( "I am childclass! ") void printAll() ______. printMe(); //调用父类的方法 ______. printMe(); //调用本类的方法 printMe ( ); public class TestJieCheng public static void main(String args[]) ______ myC. printAll();