A B C F G M N P S T V 

A

author - Variable in class Book
The author's name, or "none" if the author has not been set.

B

Book - Class in <Unnamed>
Class representing a book.
Book() - Constructor for class Book
Creates a Book with default values.
Book(String, String, int, Double) - Constructor for class Book
Creates a Book.

C

compareTo(Object) - Method in class Fiction

F

Fiction - Class in <Unnamed>
Class representing a work of fiction.
Fiction() - Constructor for class Fiction
Creates a Fiction with default values.
Fiction(String, String, int, Double, String) - Constructor for class Fiction
Creates a Fiction.

G

getMainCharacter() - Method in class Fiction
Gets the main character.
getTopic() - Method in class NonFiction
Gets the topic.

M

main(String[]) - Static method in class PersonalLibrary
Creates several types of books.
mainCharacter - Variable in class Fiction
The main character's name, or "none" if the main character has not been set.

N

NonFiction - Class in <Unnamed>
Class representing a work of nonfiction.
NonFiction() - Constructor for class NonFiction
Creates a NonFiction with default values.
NonFiction(String, String, int, Double) - Constructor for class NonFiction
 
NonFiction(String, String, int, Double, String) - Constructor for class NonFiction
Creates a NonFiction.
Novel - Class in <Unnamed>
Class representing a novel.
Novel() - Constructor for class Novel
Creates a Novel with default values.
Novel(String, String, int, Double, String, int) - Constructor for class Novel
Creates a Fiction.

P

pages - Variable in class Book
The number of pages in the book.
PersonalLibrary - Class in <Unnamed>
Class that demonstrates inheritance through a hierarchy of book types.
PersonalLibrary() - Constructor for class PersonalLibrary
 

S

sequels - Variable in class Novel
The number of sequels.
setMainCharacter(String) - Method in class Fiction
Sets the main character.

T

title - Variable in class Book
The book's title, or "no title" if a title has not been set.
topic - Variable in class NonFiction
The topic of the book, or "TBD" if a topic has not been set.
toString() - Method in class Book
toString() - Method in class Fiction
toString() - Method in class NonFiction
toString() - Method in class Novel

V

value - Variable in class Book
The book's value in arbitrary units.
A B C F G M N P S T V