public class Author { private String name; private int numBooks, yearBorn; public Author() { name = "Stephen King"; numBooks = 24; yearBorn=1947; } public Author(String n, int num, int y) { name = n; numBooks = num; yearBorn = y; } public String whoIsOlder(Author a) { if (yearBorn < a.getYearBorn()) return name; else return a.getName(); } public String getName() { return name; } public void setName(String name) { this.name = name; } public int getNumBooks() { return numBooks; } public void setNumBooks(int numBooks) { this.numBooks = numBooks; } public int getYearBorn() { return yearBorn; } public void setYearBorn(int yearBorn) { this.yearBorn = yearBorn; } }