@Override public void bookList() { for (Book b : books) { if (b.getClass().getSimpleName().equals("Book")) { System.out.println(b); } } }