// Page 216-217 import java.util.Scanner; class TestPolyStudent { public static void main(String[] args) { Scanner input = new Scanner(System.in); Person one = new Person("Jon"); StudentRec another = new StudentRec("April Bush", 1111); Undergraduate other = new Undergraduate(); System.out.println("Name, ID, level?"); String name = input.nextLine(); int number = input.nextInt(); int level = input.nextInt(); other.set(name, number, level); display(one); display(another); display(other); System.out.println("\n\nDone.\n\n"); } public static void display(Person a) { System.out.println(a); } }