46474849505152535455
return author; } private Book createBook(Class<? extends BookParent> type) throws InstantiationException, IllegalAccessException { BookParent book = type.newInstance(); book.setTitle("The Prophet"); return book; }