这道题猜猜答案?
class person { String name = “person”; public void shout() { System.out.print(name); } } class student extends person{ String name = “student”; String school = “school”; } class Test{ public static void main(String[] args){ person p = new student(); p.shout(); } }
#Java题型##笔试题目#