Ap Exam — 17.2.1 Practice

// Second constructor with default pages and hardcover = false public Book(String title, String author) this(title, author, 0, false);

// Part (b) object creation public static void main(String[] args) Book book1 = new Book("1984", "Orwell", 328, true); Book book2 = new Book("Animal Farm", "Orwell");

Discover more from Nigel Gibbons ~ Welcomes you

Subscribe now to keep reading and get access to the full archive.

Continue reading