package test; public class PolymorphismTest { public static void main(String[] args) { Student[] studentArray = new Student[5]; studentArray[0] = new Undergraduate("陈建平"); //本科生陈建平 studentArray[1] = new Undergraduate("鲁向东"); //本科生鲁向东 studentArray[2] = new Postgraduate("匡晓华"); //研究生匡晓华 studentArray[3] = new Undergraduate("周丽娜"); //本科生周丽娜 studentArray[4] = new Postgraduate("梁欣欣"); //研究生梁欣欣 for (int i=0; i