Class Book

java.lang.Object
  extended by Book
Direct Known Subclasses:
Fiction, NonFiction

public class Book
extends java.lang.Object


Field Summary
private  java.lang.String author
           
protected  int pages
           
private  java.lang.String title
           
protected  java.lang.Double value
           
 
Constructor Summary
Book()
           
Book(java.lang.String theAuthor, java.lang.String theTitle, int thePages, java.lang.Double theValue)
           
 
Method Summary
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

author

private java.lang.String author

title

private java.lang.String title

pages

protected int pages

value

protected java.lang.Double value
Constructor Detail

Book

public Book()

Book

public Book(java.lang.String theAuthor,
            java.lang.String theTitle,
            int thePages,
            java.lang.Double theValue)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object