class Base { publicvoid method(){ System.out.print("Base method"); } } class Child extends Base{ publicvoid methodB(){ System.out.print("Child methodB"); } } class Sample { publicstatic void main(String[] args) { Basebase = new Child(); base.methodB(); } }
猜结果了,猜对了 也没有奖励啊 做题最大的感受就是,一定要细心,细心,细心
|