Create a Java class named Book with instance variables title, author, ISBN, and yearPublished. Include javadoc style comments to describe your interface. Such a class would normally have methods, but you are not required to supply any methods.
What will be an ideal response?
```
/** Class for a book with title, author, ISBN and year published.
Class invariant: A Book always has a title and author.
*/
public class Book
{
/** Instance variables */
private String title;
private String author;
private String ISBN;
private int yearPublished;
}
```
You might also like to view...
When naming a macro, the name CANNOT contain any ________
A) blank spaces B) underscores C) hyphens D) numbers
The most common type of relationship in an OpenOffice Base database is the ________ relationship
Fill in the blank(s) with correct word
A Remote Access Trojan allows hackers to transmit files to victims' computers, search for data, run programs, and use a victim's computer as a relay station for breaking into other computers.
Answer the following statement true (T) or false (F)
The ________ number formatting displays commas and decimal points but not currency symbols
Fill in the blank(s) with the appropriate word(s).