// Q1 Selection sort /* 14 10 7 (5) 9 11 5 passes needed 5 10 7 14 9 11 5 7 10 14 9 11 5 7 9 14 10 11 5 7 9 10 14 11 5 7 9 10 11 14 */ // Q2 subclass Athlete public class Athlete extends Person { private String sport; public Athlete() { sport = null; } public Athlete(String N, String S) { super(N); sport = S; } public void setSport(String S) { sport = S; } public String getSport() { return sport; } public String toString() { return super.toString() + ", sport = " + sport; } public static void main(String[] args) { // declare april: "April Bush", "Softball"? Athlete april = new Athlete("April Bush", "Softball"); // output april's info? System.out.println(april); // --> "Table Tennis"? and then output info? april.setSport("Table Tennis"); System.out.println(april); // --> "April Thomas" april.set("April Thomas"); System.out.println(april); System.out.println("\n\nDone.\n\n"); } }