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;
}
```
Computer Science & Information Technology
You might also like to view...
To display the Create Names from Selection dialog box, you click Create From Selection in the ________
A) Defined Names group on the FORMULAS tab B) Edit group on the FORMULAS tab C) Defined Names group on the HOME tab D) Edit group on the HOME tab
Computer Science & Information Technology
A cookie is a filter designed to restrict access to websites
Indicate whether the statement is true or false
Computer Science & Information Technology