Question: Assume that the following code compiles without error in a client of the Book class. What do you know about the Book class? Book book1
Assume that the following code compiles without error in a client of the Book class. What do you know about the Book class?
Book book1 = new Book("Secret Coders", "Gene Luen Yang", 2015); Book book2 = new Book("Alan Turing: The Enigma", 2014);
- The Book class has at least two constructors.
- The author name may or may not be needed to construct a Book object.
- Both the book title and author name are required to construct a Book object.
| a | I only |
| b | I and II only |
| c | I and III only |
| d | II and III only |
| e | I, II, and III |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
