代码执行后,打印结果正确的是publicclassChildextends...
发布于 2022-03-03 17:16:01
代码执行后,打印结果正确的是
public class Child extends Father{ static String str static { System.out.println("Child Static block Run!") } public Child(String str) { super(str) System.out.println("Child Create! " + str) } public static void main(String[] args) { Father father = new Father("123") Child child = new Child("abc") } } class Father{ static String str static { System.out.println("Father Static block Run!") } public Father(String str) { this.str = str } }
登录后免费查看答案
关注者
0
被浏览
3